Files
portfolio/scripts/start-with-migrate.js
denshooter a5048634b8
Some checks failed
Dev Deployment (Zero Downtime) / deploy-dev (push) Failing after 9m24s
fix: add DB wait-for-ready logic and explicit network names
- start-with-migrate.js now waits for the database TCP port to be
  reachable before running Prisma migrations (15 retries, 2s interval).
  Prevents the container from crashing and restarting in a loop when
  postgres is still starting up.
- Add explicit 'name:' to both production and dev compose networks
  to prevent docker-compose project prefix mismatch.

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-17 15:33:27 +01:00

4.4 KiB