From 045d4bf575216843c3b087918b0489b61ff0c840 Mon Sep 17 00:00:00 2001 From: ScriptSorcerer20 Date: Wed, 8 Apr 2026 11:26:42 +0200 Subject: [PATCH] file for depolyment on cpanel --- passenger_wsgi.py | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 passenger_wsgi.py diff --git a/passenger_wsgi.py b/passenger_wsgi.py new file mode 100644 index 0000000..3cca8f4 --- /dev/null +++ b/passenger_wsgi.py @@ -0,0 +1,16 @@ +import os +import sys + + +PROJECT_ROOT = os.path.dirname(os.path.abspath(__file__)) + +if PROJECT_ROOT not in sys.path: + sys.path.insert(0, PROJECT_ROOT) + +os.chdir(PROJECT_ROOT) + +from app import create_app + + +application = create_app() +app = application