Modifying file: not launch app with debug=True otherwise it launches lt twice
This commit is contained in:
parent
2bcab4a877
commit
7ca032cef3
1 changed files with 2 additions and 2 deletions
4
myapp.py
4
myapp.py
|
@ -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")
|
Loading…
Reference in a new issue