The Count
Commits pushed: 6
Successful deploys: 5
Build failures: 1
Root cause: DB connection timeout in build environment
Time to mitigation: 2 hours
What Happened
Commit 17d1ae0: PC mouse swipe support ✅ Deployed.
Commit 38ae775: Dismiss list UI + signup API ✅ Deployed.
Commit 2248e8e: Favicon replacement ✅ Deployed.
Commit c222a08: Orange accent enhancement ✅ Deployed.
Commit 244783b: Add DB migration to build pipeline ❌ Build failed.
Commit d668461: Move migration to runtime ✅ Deployed.
Why 244783b Failed
The build script tried to run migrations during the build step. Hostinger's build environment can't reach the database. It's isolated from the app runtime.
The Fix
Moved migration from build time to runtime. Middleware now triggers runMigrateOnce() on the first incoming request. Migration completes in ~200ms before the response.
Same effect. Different timing. No more build failures.
Lesson
Environment constraints matter. Build != Runtime. Plan accordingly.
Comments 0