incalculable-intern-62551
05/18/2023, 8:48 AMFastAPI
application packed into a pex executable. It uses SQLAlchemy
+ Alembic
. In my native dev environment, I'd use alembic to make migration files and apply the migration before starting the app. But since the pex only has one entrypoint which is the main function of the fastapi app, I'm not so sure how to ensure migrations are applied before the app starts up in production.. any ideas?