12 lines
402 B
Python
12 lines
402 B
Python
"""WSGI-Einstiegspunkt für Gunicorn.
|
|
|
|
Hinweis: Gunicorn lädt diese Datei als Top-Level-Modul (``wsgi``), daher ist
|
|
hier ein *absoluter* Import nötig (``from app import ...``) und kein relativer.
|
|
"""
|
|
from app import create_app
|
|
|
|
app = create_app()
|
|
|
|
if __name__ == "__main__":
|
|
# Nur für lokale Entwicklung gedacht. In Produktion läuft Gunicorn.
|
|
app.run(host="0.0.0.0", port=8080, debug=False) |