From 9c00fcc0cfaecc55e4bf3ad8d968591e0b0a3a51 Mon Sep 17 00:00:00 2001 From: mcbloch Date: Mon, 2 May 2022 18:18:32 +0200 Subject: [PATCH] Fix for wsgi startup script --- app/passenger_wsgi.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/app/passenger_wsgi.py b/app/passenger_wsgi.py index 9d3ebd1..79a8a72 100644 --- a/app/passenger_wsgi.py +++ b/app/passenger_wsgi.py @@ -18,8 +18,9 @@ sys.path.append(os.getcwd()) # Phusion Passenger expects this file to be called `passenger_wsgi.py` # and the WSGI object to be called `application` -from app import app as application +from app import create_app # For running on the server with passenger etc if __name__ == "__main__": + application = create_app() application.run()