Add a --live options to control livereload

Because the livereload bug due to timezone issues with Vagrant
This commit is contained in:
Julien Duponchelle committed 2015-02-12 22:29:33 +01:00
1 parent ebc214d6fa
commit 4689024b50
2 files changed
+5 -2

No files matched your search

+1 -1
View File
@@ -173,7 +173,7 @@ class Server:
self._loop.run_until_complete(self._run_application(app, ssl_context))
self._signal_handling()
if server_config.getboolean("debug"):
if server_config.getboolean("live"):
log.info("Code live reload is enabled, watching for file changes")
self._loop.call_later(1, self._reload_hook)
self._loop.run_forever()