Modifying file: not launch app with debug=True otherwise it launches lt twice

This commit is contained in:
chabisik 2022-12-21 23:31:27 +01:00
parent 2bcab4a877
commit 7ca032cef3

View file

@ -23,7 +23,7 @@ def opener(lck):
def localtunnel_launcher(port=8000, wanted_subdomain="open-domodoor"):
result = subprocess.run(args="lt --port {} --subdomain {}".format(port,wanted_subdomain), shell=True, executable="/bin/bash")
#print("Process returned:", result)
print("Process returned:", result)
def remote_handler(lck):
n_attempts = 0
@ -116,4 +116,4 @@ if __name__=="__main__":
remote_handler_thread.start()
localtunnel_thread = threading.Thread(target=localtunnel_launcher)
localtunnel_thread.start()
app.run(host="0.0.0.0", debug=True)
app.run(host="0.0.0.0")