Skip to content

Recipe for applying migrations in production? #901

Answered by zzzeek
pawamoy asked this question in Usage Questions
Discussion options

You must be logged in to vote

hi and sorry for the late reply.

We of course never need to require that commands are run "manually" on production. The usual way this use case is met without a lot of hassle is that the running of the "alembic upgrade" command would be added to the deploy process for your application. Deploy processes vary, from shell scripts to things like Ansible to web-based administration systems, but I can't imagine a production-quality deployment system that does not include the option to run arbitrary scripts or commands as part of the process by which new files are deployed to servers; after all, the database had to be created in the first place somehow.

so given the recommendation is, "the deplo…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@pawamoy
Comment options

Answer selected by pawamoy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
2 participants