From 8bfe875483fb0312c841aae40d7481f3e170f4b5 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Wed, 14 Aug 2019 20:02:13 +0200 Subject: [PATCH] We don't need to fail hard in backend.http if the backend is configured to run the web server externally but without spawning uswgi directly (e.g. if nginx takes care of spawning and wrapping the uwsgi instance) --- platypush/backend/http/__init__.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/platypush/backend/http/__init__.py b/platypush/backend/http/__init__.py index ade182976..4948b3200 100644 --- a/platypush/backend/http/__init__.py +++ b/platypush/backend/http/__init__.py @@ -287,8 +287,9 @@ class HttpBackend(Backend): self.logger.info('Starting uWSGI with arguments {}'.format(uwsgi_cmd)) self.server_proc = subprocess.Popen(uwsgi_cmd) else: - raise EnvironmentError('The web server is configured to be launched externally but ' + - 'no uwsgi_args were provide') + self.logger.info('The web server is configured to be launched externally but ' + + 'no uwsgi_args were provided. Make sure that you run another external service' + + 'for the webserver (e.g. nginx)') # vim:sw=4:ts=4:et: