when using flask debug mode, i found it can only detect the code changes but cannot detected the related file contents changes. so i am trying to rewrite the debug rule so it can detect all the changes and Restarting
Asked
Active
Viewed 33 times
-1
-
Possible duplicate of [Reload Flask app when template file changes](https://stackoverflow.com/questions/9508667/reload-flask-app-when-template-file-changes) – Romain Valeri Mar 27 '19 at 11:10
1 Answers
0
You can use extra_files
parameter in run
function and pass list of filenames to watch.
if __name__ == "__main__":
app.run(debug=True, extra_files=['config.env', 'config.yaml'])
See werkzeug documentation for more options.

Adrian Krupa
- 1,877
- 1
- 15
- 24