3 ms·
1. Update your code (a few seconds) 2. Update your requirements (this can take several minutes in some cases) 3. Run migrations 4. Run collectstatic 5. Restart
by andybak 11y ago
1. Update your code (a few seconds)
2. Update your requirements (this can take several minutes in some cases)
3. Run migrations
4. Run collectstatic
5. Restart any daemons
6. Restart your app
Even if you can guarantee no processes will restart in this period (maybe you pause your daemons and you've configured your webserver to not spawn any new workers for a while) you've got the issue of migrations.
Personally I stop the webserver before this sequence and restart it afterwards as I can't reliably reason about all the things that can go wrong in between.
- andybak 11y ago(meta: Once again markdown and it's ilk prove to be the bane of my life... It's like WordStar never died.)