Files
loki/scripts
g-but f20e520268 feat(infra): oracle-await script + cutover SKIP_DUMP/NODE_ENV hardening
Finishes the Oracle migration plumbing started in ec6f423. Three pieces:

1. scripts/db/oracle-await-cutover.sh — polls
   ~/.config/cockpit/oracle-migration.env every 15s for ORACLE_HOST
   (timeout 7200s by default), then runs oracle-cutover.sh with
   SKIP_DUMP=1 once the IP is set. Lets the operator launch this
   before creating the VM in the Oracle console; cutover fires
   automatically the moment the public IP lands in the config.

2. scripts/db/oracle-cutover.sh — SKIP_DUMP=1 reuses an existing
   pre-oracle-cutover.sql.gz instead of re-dumping prod, so the await
   loop doesn't double-dump on every retry; env -u NODE_ENV wraps
   `npm run build` and `vercel deploy`/`vercel redeploy` so the
   ambient NODE_ENV=production from systemd or .env files can't
   poison the build's mode resolution.

3. package.json — adds db:oracle-await alias.
2026-05-24 23:18:12 +02:00
..