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:
|
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__)
During development, Werkzeug's reloader watches just Python files and Jinja templates. Normally, this can be extended by the
extra_fileskeyword argument:Elsa doesn't support this:
elsa/elsa/_cli.py
Line 83 in 9672d65
Following workaround works, but it would be nice if Elsa was able to propagate the option in some way, out of the box.