-
Notifications
You must be signed in to change notification settings - Fork 49
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Serve should watch for changes and autorestart #8
Comments
You need to set The problem is that you need to set it before the Jinja environment is created, and helpers like Elsa does (try to) set the config variable. But by the time Elsa has a chance run, it may be too late for it to have any effect. |
Don't know how to fix this properly. Perhaps making people use |
Auto reloading does not work correctly when Jinja environment is initialized before elsa's cli() is called (for example when adding template filters - see pyvec#8). Flask's TEMPLATES_AUTO_RELOAD normally propagates to auto_reload property of Jinja's environment which can be set in runtime, so try to keep this behaviour in elsa's serve mode. Fixes pyvec#8.
Auto reloading does not work correctly when Jinja environment is initialized before elsa's cli() is called (for example when adding template filters - see pyvec#8). Flask's TEMPLATES_AUTO_RELOAD normally propagates to auto_reload property of Jinja's environment which can be set in runtime, so try to keep this behaviour in elsa's serve mode. Fixes pyvec#8 Fixes pyvec#9
This is reported in Flask: pallets/flask#1907 |
It's really poor developer experience to have to restart it manually.
The text was updated successfully, but these errors were encountered: