mirror of
https://github.com/jhd3197/ServerKit.git
synced 2026-12-02 05:05:12 +09:00
Plan 87 phase D. Both slots share the database, so what changes it runs once, before the switch, while the old release still serves: the app's managed databases are dumped (a warning, never a blocker), then the release command runs in a one-off container of the new image. A failed release aborts the deploy with the live slot untouched. The command comes from the app's setting, the Procfile release: line, or serverkit.yaml; a rollback never re-runs it. Rolling code back never rolls the database back: after a switch back the slot card offers the pre-deploy snapshot as an explicit second step with a data-loss warning. stop_old_before_release is the announced-downtime fallback for schema changes that cannot stay backward-compatible for one deploy.