Support for auto open projects

Fix #1418
This commit is contained in:
Julien Duponchelle committed 2016-08-16 16:04:20 +02:00
1 parent 12735ff36e
commit ac085126fc
4 files changed
+11 -3

No files matched your search

+5
View File
@@ -292,10 +292,15 @@ class WebServer:
log.info("Starting server on {}:{}".format(self._host, self._port))
self._handler = app.make_handler(handler=RequestHandler)
server = self._run_application(self._handler, ssl_context)
self._loop.run_until_complete(server)
self._signal_handling()
self._exit_handling()
# Now the compute is initialized we can load the projects
if server_config.getboolean("controller"):
asyncio.async(Controller.instance().load_projects())
if server_config.getboolean("shell"):
asyncio.async(self.start_shell())