Fix #131
This commit is contained in:
parent
03969fdfb2
commit
cd3aabacac
1 changed files with 4 additions and 2 deletions
|
|
@ -2,7 +2,9 @@
|
||||||
from gevent import monkey
|
from gevent import monkey
|
||||||
|
|
||||||
# Patch most system modules. Leave threads untouched so we can still use them normally if needed.
|
# Patch most system modules. Leave threads untouched so we can still use them normally if needed.
|
||||||
monkey.patch_all(thread=False)
|
print("Monkey patching with Gevenet")
|
||||||
|
monkey.patch_all()
|
||||||
|
print("Monkey patching successful")
|
||||||
|
|
||||||
import time
|
import time
|
||||||
import atexit
|
import atexit
|
||||||
|
|
@ -177,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=False)
|
server.run(host="0.0.0.0", port=5000, debug=True, zeroconf=True)
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue