deployment - Handling Migrations in a Python/Django App When Deploying from Native System Packages -
after reading fantastic article hynek schlawack (http://hynek.me/articles/python-app-deployment-with-native-packages/) on utilizing native system packages python web-app deployment, i've begun investigating usage within our environment. however, i'd pose idea of migrations inside package people , gather opinions before delving deep down rabbit hole.
is else using native-package deployment method described hynek? , if so, how handle db migrations? make sense use postinst
hook/script automate migration?
any ideas/help appreciated.
cheers, david.
yes, makes sense trigger migrations in postinst
script. however, take consideration database migration process can become tricky, if you're using automated deployment on production system. consider creating staging environment test every deploy before using on production.
Comments
Post a Comment