From 4c96fae6b19a339b5fc600aacb38dc32204bf612 Mon Sep 17 00:00:00 2001 From: Pierre-Yves Chibon Date: Thu, 3 May 2018 10:40:03 +0200 Subject: [PATCH] Port the .wsgi file to pagure 4.0 Signed-off-by: Pierre-Yves Chibon --- roles/pagure/frontend/templates/pagure.wsgi | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/roles/pagure/frontend/templates/pagure.wsgi b/roles/pagure/frontend/templates/pagure.wsgi index b072264090..7f327fd0eb 100644 --- a/roles/pagure/frontend/templates/pagure.wsgi +++ b/roles/pagure/frontend/templates/pagure.wsgi @@ -23,6 +23,8 @@ os.environ['TEMP'] = '/srv/tmp/' #sys.path.insert(0, '/path/to/pagure/') -## The most import line to make the wsgi working -from pagure import APP as application -#application.debug = True +# The most import line to make the wsgi working +from pagure.flask_app import create_app + +application = create_app() +application.debug = True