hosts_app/run_waitress.py
Mateusz Gruszczyński 5c878de027 fix waitress
2025-03-04 11:20:33 +01:00

11 lines
245 B
Python

from waitress import serve
from app import app, scheduler
@app.before_first_request
def start_scheduler():
if not scheduler.running:
scheduler.start()
if __name__ == "__main__":
serve(app, listen="*:5580", threads=4, ident="")