fix: websocket was not working anymore since 53b404a9

parent 5d9600d0
Pipeline #1514 passed with stage
in 3 minutes and 11 seconds
......@@ -132,7 +132,9 @@ def create_app(conf=None, verbose=0, logfile=None, **kwargs):
'debug: {}\n'.format(debug) +
'unittest: {}\n'.format(unittest) +
'cli: {}\n'.format(cli) +
'reverse_proxy: {}'.format(reverse_proxy)
'reverse_proxy: {}\n'.format(reverse_proxy) +
'celery_worker: {}\n'.format(celery_worker) +
'websocket_server: {}'.format(websocket_server)
)
if not unittest: # pragma: no cover
......@@ -169,7 +171,7 @@ def create_app(conf=None, verbose=0, logfile=None, **kwargs):
logger.info('Using configuration: {}'.format(app.config['CFG']))
app.setup(app.config['CFG'], unittest, cli)
if cli:
if cli and not websocket_server:
return app
if debug:
......
......@@ -1469,7 +1469,7 @@ class Config(File):
self._parse()
removed = []
orig = self.files
orig = self.files.copy()
for path, conf in orig.items():
if conf.parent and ((conf.name not in self._includes and
conf.name not in self._templates) or conf.name in removed):
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment