Files

19 lines
501 B
Python
Raw Permalink Normal View History

2026-01-08 01:00:26 +10:30
"""WSGI entry point for the application."""
from dotenv import load_dotenv, find_dotenv
# Load environment variables from .env file FIRST, before any imports
# This must be done before importing app to ensure config has access to env vars
load_dotenv(find_dotenv())
import os
2026-01-15 03:40:29 +10:30
from gatehouse_app import create_app
2026-01-08 01:00:26 +10:30
# Create application instance
2026-01-15 03:40:29 +10:30
application = create_app(os.getenv("FLASK_ENV", "development"))
# For backwards compatibility
app = application
2026-01-08 01:00:26 +10:30
if __name__ == "__main__":
app.run()