How to set up autoreload with Flask+uWSGI? How to set up autoreload with Flask+uWSGI? flask flask

How to set up autoreload with Flask+uWSGI?


I am running uwsgi version 1.9.5 and the option

uwsgi --py-autoreload 1

works great


If you're configuring uwsgi with command arguments, pass --py-autoreload=1:

uwsgi --py-autoreload=1

If you're using a .ini file to configure uwsgi and using uwsgi --ini, add the following to your .ini file:

py-autoreload = 1


For development environment you can try using --python-autoreload uwsgi's parameter.Looking at the source code it may work only in threaded mode (--enable-threads).