fix waitress
This commit is contained in:
parent
e9f53c88e2
commit
5c878de027
@ -1,5 +1,10 @@
|
|||||||
from waitress import serve
|
from waitress import serve
|
||||||
from app import app
|
from app import app, scheduler
|
||||||
|
|
||||||
|
@app.before_first_request
|
||||||
|
def start_scheduler():
|
||||||
|
if not scheduler.running:
|
||||||
|
scheduler.start()
|
||||||
|
|
||||||
if __name__ == "__main__":
|
if __name__ == "__main__":
|
||||||
serve(app, listen='*:5580', threads=4, ident="")
|
serve(app, listen="*:5580", threads=4, ident="")
|
||||||
|
Loading…
x
Reference in New Issue
Block a user