Forums

Programatically reload web app

Hi,

Can I programatically force a web app to reload? When I'm developing, it would be great to have a console monitoring flask.py and then reloading the web app on save

Thanks Robert

If you touch your wsgi file, the webapp does a partial reload; it won't update certain settings, like static files, but it might do what you want. You could maybe use inotify to tell you when things have changed... https://github.com/seb-m/pyinotify