Flask + mod_wsgi automatic reload on source code change

前端 未结 6 822
旧时难觅i
旧时难觅i 2021-01-04 08:10

Does anyone know how to make a mod_wsgi automatically reload a Flask app when any of the modules changes? I\'ve tried WSGIScriptReloading On, but n

6条回答
  •  不知归路
    2021-01-04 08:51

    For production I prefer apache mod_wsgi too, while for development I use the flask's built-in server. I separate prod and dev config files and I set the debug directive True in the dev config so that Flask can detect and reload code changes automatically.

提交回复
热议问题