Last active
January 28, 2021 12:59
-
-
Save sethbunke/e901232e838a53cd1fe0becbf852c0e6 to your computer and use it in GitHub Desktop.
Simple Way to Restart Python Flask on File Change During Development
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| export FLASK_DEBUG=1 | |
| export FLASK_APP=name-of-your-python-file-here.py | |
| flask run |
Thanks for this.
Excellent thanks.
works nicely :D
I've tried this but I am trying to restart on a .db file change and this hasn't worked for me. Is there a similar method that will work for .db file changes? Thanks!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Nice!