How do I make uWSGI restart when a Python script is modified?
Reference: http://projects.unbit.it/uwsgi/wiki/Management
If you have started uwsgi with the --touch-reload=/path/to/special/file/usually/the.ini
option, reloading your uWSGI is a simple matter of touch reloading that file with
touch /path/to/special/file/usually/the.ini
And if you want the "autoreload" capability, this is the tip that gets this done: http://projects.unbit.it/uwsgi/wiki/TipsAndTricks#uWSGIdjangoautoreloadmode
There is a py-autoreload=N
option in newer releases. Just set N
to the frequency (in seconds) of checks (3 is a good value).