-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathwsgi.py
More file actions
29 lines (23 loc) · 1018 Bytes
/
wsgi.py
File metadata and controls
29 lines (23 loc) · 1018 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env python3
# -*- coding: utf-8 -*-
# ============================================================================ #
# DockerDiscordControl (DDC) - WSGI Entry Point #
# https://ddc.bot #
# Copyright (c) 2025 MAX #
# Licensed under the MIT License #
# ============================================================================ #
"""
WSGI entry point for DockerDiscordControl
Provides proper WSGI application for Gunicorn
"""
import sys
import os
# Add project root to Python path
sys.path.insert(0, os.path.dirname(os.path.abspath(__file__)))
# Import the Flask app factory
from app.web_ui import create_app # pylint: disable=wrong-import-position
# Create WSGI application
application = create_app()
# For development server
if __name__ == '__main__':
application.run(host='0.0.0.0', port=5001, debug=False)