How to set up autoreload with Flask+uWSGI?

后端 未结 7 1779
清酒与你
清酒与你 2020-12-13 00:41

I am looking for something like uWSGI + django autoreload mode for Flask.

7条回答
  •  一向
    一向 (楼主)
    2020-12-13 01:14

    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
    

提交回复
热议问题