Run gevent monkeypatch
This commit is contained in:
parent
2bc02b3844
commit
c657014388
1 changed files with 5 additions and 1 deletions
|
|
@ -1,4 +1,8 @@
|
||||||
#!/usr/bin/env python
|
#!/usr/bin/env python
|
||||||
|
from gevent import monkey
|
||||||
|
|
||||||
|
# Patch most system modules. Leave threads untouched so we can still use them normally if needed.
|
||||||
|
monkey.patch_all(thread=False)
|
||||||
|
|
||||||
import time
|
import time
|
||||||
import atexit
|
import atexit
|
||||||
|
|
@ -175,4 +179,4 @@ if __name__ == "__main__":
|
||||||
from labthings.server.wsgi import Server
|
from labthings.server.wsgi import Server
|
||||||
|
|
||||||
server = Server(app)
|
server = Server(app)
|
||||||
server.run(host="0.0.0.0", port=5000, debug=True)
|
server.run(host="0.0.0.0", port=5000, debug=False)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue