Skip to content

fix: run alembic migrations on annotation backend startup#33

Merged
MateoLostanlen merged 2 commits intomainfrom
fix/annotation-server-alembic-startup
May 1, 2026
Merged

fix: run alembic migrations on annotation backend startup#33
MateoLostanlen merged 2 commits intomainfrom
fix/annotation-server-alembic-startup

Conversation

@MateoLostanlen
Copy link
Copy Markdown
Member

  • Swap the legacy python app/db.py bootstrap for alembic upgrade head in docker-compose.annotator.yml.j2, matching the change in feat: manage database schema via alembic pyro-annotator#119 — the API now manages its DB schema via Alembic.
  • Use exec uvicorn so SIGTERM reaches the web server cleanly during deploys/restarts.

The annotation API now manages its database schema via Alembic
(pyronear/pyro-annotator#119), so swap the legacy 'python app/db.py'
bootstrap for 'alembic upgrade head' in the deploy template.
@MateoLostanlen MateoLostanlen merged commit 5369b2e into main May 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant