From cd3aabacac04c9bafeb4d4f621dec3ce104d69cb Mon Sep 17 00:00:00 2001 From: Joel Collins Date: Thu, 26 Mar 2020 14:45:01 +0000 Subject: [PATCH] Fix #131 --- openflexure_microscope/api/app.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/openflexure_microscope/api/app.py b/openflexure_microscope/api/app.py index 60e79639..2b14596f 100644 --- a/openflexure_microscope/api/app.py +++ b/openflexure_microscope/api/app.py @@ -2,7 +2,9 @@ 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) +print("Monkey patching with Gevenet") +monkey.patch_all() +print("Monkey patching successful") import time import atexit @@ -177,4 +179,4 @@ if __name__ == "__main__": from labthings.server.wsgi import Server 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)