Uh oh!
There was an error while loading.Please reload this page.
- Notifications
You must be signed in to change notification settings - Fork16.7k
Description
Expected Behavior
I expected to haveFLASK_RUN_EXTRA_FILES to be processed in the same way ofFLASK_RUN_PORT andFLASK_RUN_HOST
When using the old styleapp.run we can define anextra_files to be watched for changes by the reloader, that is useful for example, if you have a static settings file likesettings.toml (usingdynaconf) or another kind of static config or themed templates loaded from other paths
Actual Behavior
In therun commandhttps://github.com/pallets/flask/blob/master/flask/cli.py#L775 the argumentextra_files is not being passed towekzeug.run_simplehttps://github.com/pallets/werkzeug/blob/master/werkzeug/serving.py#L738
Suggestion
AddFLASK_RUN_EXTRA_FILES="path1,path2,path" to flask run command.
or
Map all variables fromwerkzeug.run_simple -https://github.com/pallets/werkzeug/blob/master/werkzeug/serving.py#L738
In toFLASK_RUN_* prefixed env var orWERKZEUG_RUN_* prefixed env var.
Environment
- Python version: 3.6
- Flask version: 1.0.2
- Werkzeug version: 0.14.1