hosts_app/run_waitress.py
Mateusz Gruszczyński c4b753d4bd fixy i usprwnienia
2025-03-06 10:38:12 +01:00

12 lines
282 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="*:5580", threads=4, ident="")