From 8a01e74323162ba96183bf7dc748de426b5cf3b8 Mon Sep 17 00:00:00 2001 From: Midgard Date: Sat, 18 Jul 2020 03:54:33 +0200 Subject: [PATCH] Fix Passenger startup script --- app/passenger_wsgi.py | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/app/passenger_wsgi.py b/app/passenger_wsgi.py index e2a2ec5..7fe947b 100644 --- a/app/passenger_wsgi.py +++ b/app/passenger_wsgi.py @@ -9,9 +9,7 @@ if sys.executable != INTERP: os.execl(INTERP, INTERP, *sys.argv) sys.path.append(os.getcwd()) -from app import create_app - -application = create_app().app +from app import app as application # For running on the server with passenger etc if __name__ == "__main__":