mirror of
https://github.com/IfcOpenShell/IfcOpenShell.git
synced 2026-09-28 03:05:33 +00:00
remove debug flag in flask run command
removed debug flag in flask run command as it leaves a zombie process after closing blender
This commit is contained in:
@@ -63,7 +63,7 @@ class Web(blenderbim.core.tool.Web):
|
|||||||
env = os.environ.copy()
|
env = os.environ.copy()
|
||||||
env["FLASK_APP"] = ws_path
|
env["FLASK_APP"] = ws_path
|
||||||
|
|
||||||
ws_process = subprocess.Popen(["flask", "run", str(port), "--debug"], env=env)
|
ws_process = subprocess.Popen(["flask", "run", "-p", str(port)], env=env)
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def connect_websocket_server(cls, port):
|
def connect_websocket_server(cls, port):
|
||||||
@@ -79,8 +79,8 @@ class Web(blenderbim.core.tool.Web):
|
|||||||
|
|
||||||
ws_process.terminate()
|
ws_process.terminate()
|
||||||
ws_process.wait()
|
ws_process.wait()
|
||||||
print("Webserver terminated successfully")
|
|
||||||
ws_process = None
|
ws_process = None
|
||||||
|
print("Webserver terminated successfully")
|
||||||
|
|
||||||
@classmethod
|
@classmethod
|
||||||
def show_webserver_running(cls):
|
def show_webserver_running(cls):
|
||||||
|
|||||||
Reference in New Issue
Block a user