diff options
author | 2018-03-25 20:33:25 +0200 | |
---|---|---|
committer | 2018-03-25 19:33:25 +0100 | |
commit | cdc5d4fec9408563595beeb0c9019e31ee3b1398 (patch) | |
tree | 563cf7caeecd98e0a36e788aa8d1326ece9c0a6d /app.py | |
parent | Made .travis.yml a bit more consistent (#44) (diff) |
Docker compose (#40)
* adds docker-compose file
* cleanup
* adds template auto reload to vagrant box
* Update index.html
Diffstat (limited to 'app.py')
-rw-r--r-- | app.py | 6 |
1 files changed, 6 insertions, 0 deletions
@@ -1,9 +1,15 @@ # coding=utf-8 +from os import environ + from pysite.route_manager import RouteManager manager = RouteManager() app = manager.app +debug = environ.get('TEMPLATES_AUTO_RELOAD', "no") +if debug == "yes": + app.jinja_env.auto_reload = True + if __name__ == '__main__': manager.run() |