Initial commit: enterprise digital platform with portal SSO, DigiServer, IT Assets, NetworkView, Server Monitor

This commit is contained in:
ske087
2026-05-10 21:07:50 +03:00
commit 8d9df56b0b
364 changed files with 73655 additions and 0 deletions
+14
View File
@@ -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'))