11 lines
245 B
Python
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="")
|