From 1581685f622e20f168c6714f213b1b6967548f40 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Thu, 4 Jan 2018 17:34:25 +0100 Subject: [PATCH] use_reloader=False on Flask to prevent the platypush daemon to be spawned twice --- platypush/backend/http/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/platypush/backend/http/__init__.py b/platypush/backend/http/__init__.py index 5e5bdae6..1ee09e0f 100644 --- a/platypush/backend/http/__init__.py +++ b/platypush/backend/http/__init__.py @@ -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)