From e3fcebe4b6906d2540b28fb2a86327d10128ab05 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 24 Feb 2019 00:17:31 +0100 Subject: [PATCH] Made a separate uWSGI startup script for the webapp --- platypush/backend/http/app/__init__.py | 4 ---- platypush/backend/http/app/uwsgi.py | 11 +++++++++++ 2 files changed, 11 insertions(+), 4 deletions(-) create mode 100644 platypush/backend/http/app/uwsgi.py diff --git a/platypush/backend/http/app/__init__.py b/platypush/backend/http/app/__init__.py index 11d66d8f86..e0e331eb1e 100644 --- a/platypush/backend/http/app/__init__.py +++ b/platypush/backend/http/app/__init__.py @@ -21,8 +21,4 @@ for route in get_routes(): application.register_blueprint(route) -if __name__ == '__main__': - application.run() - - # vim:sw=4:ts=4:et: diff --git a/platypush/backend/http/app/uwsgi.py b/platypush/backend/http/app/uwsgi.py new file mode 100644 index 0000000000..df2ccfcff3 --- /dev/null +++ b/platypush/backend/http/app/uwsgi.py @@ -0,0 +1,11 @@ +""" +uWSGI webapp startup script +""" + +from . import application + +if __name__ == '__main__': + application.run() + + +# vim:sw=4:ts=4:et: