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