-
Notifications
You must be signed in to change notification settings - Fork 48
Open
Labels
Description
During development, Werkzeug's reloader watches just Python files and Jinja templates. Normally, this can be extended by the extra_files keyword argument:
app.run(host='0.0.0.0', ..., extra_files=['woohoo.yml'])Elsa doesn't support this:
Line 83 in 9672d65
| app.run(host='0.0.0.0', port=port, debug=True) |
Following workaround works, but it would be nice if Elsa was able to propagate the option in some way, out of the box.
from flask import Flask as BaseFlask
class Flask(BaseFlask):
def run(self, *args, **kwargs):
kwargs.setdefault('extra_files', [])
kwargs['extra_files'].append('.../data.yml')
return super().run(*args, **kwargs)
app = Flask(__name__)