Fix migration strategy docs to match production

Coolify runs migrations post-deploy via rel/overlays/bin/migrate,
not on boot. Update both architecture and infrastructure docs.

Closes #141
This commit is contained in:
Claudio Ortolina
2026-03-30 14:15:23 +01:00
parent 53178b373b
commit 24f061646e
2 changed files with 7 additions and 2 deletions
+6 -1
View File
@@ -164,7 +164,12 @@ A manual verification workflow (`.github/workflows/verify.yml`) can be triggered
Standard Mix release. Entry point: `rel/overlays/bin/server` (sets `PHX_SERVER=true`).
Migrations run automatically on boot via `Ecto.Migrator` in the supervision tree.
Migrations are skipped during release boot (`skip_migrations?/0` returns `true` when
`RELEASE_NAME` is set). Instead, Coolify is configured to run migrations after the
Docker image is built and the container is started — this happens via the
`rel/overlays/bin/migrate` script, executed as a post-deployment command in Coolify
before the application begins serving traffic.
A standalone `rel/overlays/bin/migrate` script is also available for manual use.
ERL_FLAGS: `+JPperf true` (JIT performance monitoring).