mirror of
https://github.com/GNS3/gns3-server.git
synced 2026-11-06 15:21:13 +02:00
Add a --live options to control livereload
Because the livereload bug due to timezone issues with Vagrant
This commit is contained in:
1 parent
ebc214d6fa
commit
4689024b50
2 files changed
+5
-2
No files matched your search
@@ -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()
|
||||
Reference in new issue
Block a user