Files
Claude VM a6c03a091e initial: split from gov-agreg — vreau.digital standalone platform
Moved from gov-agreg/src/pages/achizitii/* to root (drop prefix).
- 22 pages migrated, 127 files total
- All internal links: /achizitii/X → /X (176 occurrences fixed)
- AchizitiiLayout subnav rewritten: /X paths, top-right link to vreaudigital.ro hub
- BaseLayout new (vreau.digital branding, OG tags, site URL)
- astro.config.mjs: site https://vreau.digital, server output (was static)
- docker-compose: port 5096 (vreaudigital is 5095), container vreau-digital
- deploy.sh: paths /opt/vreau-digital, log /var/log/vreau-digital-deploy.log

Backend shared with gov-agreg:
- PostgreSQL satra (same schemas: seap, firms, anaf, anre, ...)
- Photon, Martin tiles
- Infisical /vreaudigital path (DATABASE_URL etc. shared)

build: PASS (npx astro check 0 errors, npm run build 5s vite + 10s server)
2026-05-13 00:10:32 +03:00

37 lines
1.3 KiB
Markdown

# systemd units for vreaudigital scrapers + housekeeping
These files mirror the units installed on satra at `/etc/systemd/system/vreaudigital-*.{service,timer}`. Commit the source of truth here; install on satra with `sudo cp` + `sudo systemctl daemon-reload + enable --now`.
## Currently installed on satra
| Unit | Schedule | What it does |
|---|---|---|
| `vreaudigital-anaf-daily.timer` | daily | ANAF v9 enrichment (incremental) |
| `vreaudigital-onrc-weekly.timer` | Tue 03:00 | ONRC bulk refresh |
| `vreaudigital-mvs.timer` | daily 04:00 | Refresh seap materialized views |
| `vreaudigital-heartbeat.timer` | daily 07:00 | Data-freshness probe across 20 sources |
## Install procedure
```bash
# from this repo, copy units to satra:
scp services/seap-scraper/systemd/vreaudigital-<name>.{service,timer} \
satra:/tmp/
ssh satra "sudo cp /tmp/vreaudigital-<name>.{service,timer} /etc/systemd/system/ && \
sudo systemctl daemon-reload && \
sudo systemctl enable --now vreaudigital-<name>.timer"
```
## Inspect
```bash
ssh satra "systemctl status vreaudigital-<name>.timer --no-pager"
ssh satra "journalctl -u vreaudigital-<name>.service --since today --no-pager"
```
## Manual test (without timer)
```bash
ssh satra "sudo systemctl start vreaudigital-<name>.service"
```