From c74b93966027dbc6a409db27751837e36c015b79 Mon Sep 17 00:00:00 2001 From: Fabio Manganiello Date: Sun, 24 Feb 2019 00:11:35 +0100 Subject: [PATCH] Renamed app->application for the main Flask webapp to make sure that the default uwsgi configuration can pick it up --- platypush/backend/http/__init__.py | 4 ++-- platypush/backend/http/app/__init__.py | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/platypush/backend/http/__init__.py b/platypush/backend/http/__init__.py index 8ed60da5d..00be2bc95 100644 --- a/platypush/backend/http/__init__.py +++ b/platypush/backend/http/__init__.py @@ -4,7 +4,7 @@ import threading from multiprocessing import Process from platypush.backend import Backend -from platypush.backend.http.app import app +from platypush.backend.http.app import application from platypush.context import get_or_create_event_loop from platypush.utils import get_ssl_server_context, set_thread_name @@ -208,7 +208,7 @@ class HttpBackend(Backend): if self.ssl_context: kwargs['ssl_context'] = self.ssl_context - app.run(**kwargs) + application.run(**kwargs) return proc diff --git a/platypush/backend/http/app/__init__.py b/platypush/backend/http/app/__init__.py index 4e28d8c11..11d66d8f8 100644 --- a/platypush/backend/http/app/__init__.py +++ b/platypush/backend/http/app/__init__.py @@ -14,15 +14,15 @@ base_folder = os.path.abspath(os.path.join( template_folder = os.path.join(base_folder, 'templates') static_folder = os.path.join(base_folder, 'static') -app = Flask('platypush', template_folder=template_folder, - static_folder=static_folder) +application = Flask('platypush', template_folder=template_folder, + static_folder=static_folder) for route in get_routes(): - app.register_blueprint(route) + application.register_blueprint(route) if __name__ == '__main__': - app.run() + application.run() # vim:sw=4:ts=4:et: