Ausgaben-WebApp: Puppet-Modul (Flask + Gunicorn + SQLite, Docker Compose)
This commit is contained in:
@@ -0,0 +1,12 @@
|
||||
"""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)
|
||||
Reference in New Issue
Block a user