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`.
12 lines
397 B
Bash
12 lines
397 B
Bash
#!/usr/bin/env bash
|
|
# App entrypoint: apply migrations, then launch the API.
|
|
set -e
|
|
|
|
cd /app
|
|
echo "[entrypoint] running migrations..."
|
|
# `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
|