Auto-apply migrations on deploy (entrypoint + one-shot service) #23
Reference in New Issue
Block a user
Delete Branch "deploy-auto-migrate"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Backend entrypoint runs alembic upgrade head (RUN_MIGRATIONS=1) before uvicorn so a Watchtower image swap self-migrates; plus a one-shot migrate service for compose up. Idempotent + serialized so alembic never runs concurrently. Activating needs the updated compose on the host once.