Initial commit: enterprise digital platform with portal SSO, DigiServer, IT Assets, NetworkView, Server Monitor
This commit is contained in:
@@ -0,0 +1,14 @@
|
||||
"""
|
||||
WSGI entry point for running DigiServer v2 via gunicorn outside Docker.
|
||||
Ensures the project directory is on sys.path before importing the app factory.
|
||||
"""
|
||||
import sys
|
||||
import os
|
||||
|
||||
# Add the project root to sys.path so `from app.app import create_app` works
|
||||
# when gunicorn is invoked from a different directory.
|
||||
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
|
||||
|
||||
from app.app import create_app # noqa: E402
|
||||
|
||||
application = create_app(os.environ.get('FLASK_ENV', 'production'))
|
||||
Reference in New Issue
Block a user