Commit e3e6bcd
fix(fly): don't crash-loop the machine on a failed migration
A failing migration aborted the entrypoint under `set -e`. Fly restarts
on exit, so the machine looped until it hit max-restart-count and the
app never served at all — and the restart loop was fast enough to make
`fly ssh console` fail its handshake, blocking diagnosis of the very
migration that caused it.
Migrations run in a transaction, so a failure rolls back and leaves the
schema at the last good version. Serving on that schema degrades
whatever feature needed the new columns but keeps the rest of the site
up, which beats a total outage.
Co-Authored-By: Claude Opus 5 <noreply@anthropic.com>1 parent 4d90347 commit e3e6bcd
1 file changed
Lines changed: 12 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
87 | 87 | | |
88 | 88 | | |
89 | 89 | | |
90 | | - | |
| 90 | + | |
| 91 | + | |
| 92 | + | |
| 93 | + | |
| 94 | + | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
91 | 102 | | |
92 | 103 | | |
93 | 104 | | |
| |||
0 commit comments