[Answer]-Stop uwsgi when code updating

1👍

There are lot of ways to manage code reloads in uWSGI, the vast majority of them is described in this article: http://uwsgi-docs.readthedocs.org/en/latest/articles/TheArtOfGracefulReloading.html

Try to adapt the concepts described there with your specific situation

0👍

Two options come to mind.

  1. Stop uwsgi and restart when finished.

  2. Deploy to a second directory. For example, assuming the app is pointed at /opt/app, then deploy the code to ~/app, and rm -rf /opt/app/* && cp -r ~/app/ /opt/app; You still may need to restart uwsgi in case it’s hanging on to any FDs.

Leave a comment