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
parent f1d70d3f4c
commit 1b1f2d3b3a
2 changed files with 27 additions and 1 deletions

View file

@ -0,0 +1,24 @@
"""merge 005_phase2 and 005_news_items
Revision ID: 006_merge_heads
Revises: 005_phase2, 005_news_items
Create Date: 2026-08-28
Two PRs both parented 004_camera_enum (phase2 geofences + news_items).
`alembic upgrade head` then fails and crash-loops the dashboard.
"""
from alembic import op # noqa: F401
revision = "006_merge_heads"
down_revision = ("005_phase2", "005_news_items")
branch_labels = None
depends_on = None
def upgrade() -> None:
pass
def downgrade() -> None:
pass

View file

@ -4,7 +4,9 @@ set -e
cd /app cd /app
echo "[entrypoint] running migrations..." 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..." echo "[entrypoint] starting uvicorn..."
exec uvicorn app.main:app --host 0.0.0.0 --port 8000 exec uvicorn app.main:app --host 0.0.0.0 --port 8000