fix: merge alembic heads so the dashboard stops crash-looping
Some checks failed
build-and-deploy / build-push-deploy (push) Failing after 2m59s

005_phase2 and 005_news_items both revised 004_camera_enum. Entrypoint
`alembic upgrade head` then failed and the app never bound :8000 (502
over Tailscale). Merge revision + `upgrade heads`.
This commit is contained in:
Sirius DevOps 2026-08-28 18:29:06 -04:00
commit 1b1f2d3b3a
2 changed files with 27 additions and 1 deletions

View file

@ -4,7 +4,9 @@ set -e
cd /app
echo "[entrypoint] running migrations..."
alembic upgrade head
# `heads` (plural): parallel PRs can fork the chain (005_phase2 + 005_news_items).
# `upgrade head` then exits 255 and crash-loops the container.
alembic upgrade heads
echo "[entrypoint] starting uvicorn..."
exec uvicorn app.main:app --host 0.0.0.0 --port 8000