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)
This commit is contained in:
Fabio Manganiello 2019-08-14 20:02:13 +02:00
parent 4e31edcd34
commit 8bfe875483

View file

@ -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: