use_reloader=False on Flask to prevent the platypush daemon to be spawned twice

This commit is contained in:
Fabio Manganiello 2018-01-04 17:34:25 +01:00
parent 39f986a88d
commit 1581685f62

View file

@ -61,7 +61,7 @@ class HttpBackend(Backend):
logging.info('Initialized HTTP backend on port {}'.format(self.port))
self.server_proc = Process(target=app.run, kwargs={
'debug':True, 'host':'0.0.0.0', 'port':self.port
'debug':True, 'host':'0.0.0.0', 'port':self.port, 'use_reloader':False
})
time.sleep(1)