I have a Flask App that I am running locally and testing. Every time, I make a change in the Application code, the changes would reflect on the dev environment http://127.0.0.1:8000/
with a simple browser refresh.
Now, I have to terminate the Flask App Ctrl X
+ Ctrl C
and then reboot / relaunch the App. I am using gunicorn
to launch the Flask App.
Not sure what changed, but how do I configure the App such that the changes take effect on refresh?
I have the following line of code in init.py
:
if __name__ == '__main__':
run_simple('0.0.0.0', 80, app, use_reloader=True, use_debugger=True)