Files
Dockhand_Backup/wsgi.py
2026-07-13 13:12:49 +02:00

16 lines
438 B
Python

"""WSGI/entry point.
Production (in Docker): gunicorn -w1 --threads 4 wsgi:app
Local dev: python wsgi.py (Flask dev server on :8080)
"""
from app import create_app
app = create_app()
if __name__ == "__main__":
import os
# use_reloader=False: the reloader would start a second APScheduler.
app.run(host="0.0.0.0", port=int(os.environ.get("PORT", 8080)),
debug=True, use_reloader=False)