Files
hosts_app/run_waitress.py
2026-03-21 10:14:33 +01:00

12 lines
288 B
Python

from waitress import serve
from app import app, scheduler, db
from datetime import datetime
if __name__ == "__main__":
with app.app_context():
db.create_all()
if not scheduler.running:
scheduler.start()
serve(app, listen="0.0.0.0:5580", threads=4, ident="")