refoundd commited on
Commit
62b083f
·
verified ·
1 Parent(s): b319cc8

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +6 -6
handler.py CHANGED
@@ -49,12 +49,12 @@ for command in commands:
49
  logger.info(f"SUCCESS CMD: {command}")
50
  except subprocess.CalledProcessError as e:
51
  logger.info(f"Failed CMD: {e}")
52
- def run_ngrok():
53
- subprocess.run(["ngrok", "http", "5000"])
54
- ngrok_thread = threading.Thread(target=run_ngrok)
55
- ngrok_thread.daemon = True
56
- ngrok_thread.start()
57
- logger.info("ngrok is running in the background")
58
 
59
  class EndpointHandler:
60
  def __init__(self, path=""):
 
49
  logger.info(f"SUCCESS CMD: {command}")
50
  except subprocess.CalledProcessError as e:
51
  logger.info(f"Failed CMD: {e}")
52
+ # def run_ngrok():
53
+ # subprocess.run(["ngrok", "http", "5000"])
54
+ # ngrok_thread = threading.Thread(target=run_ngrok)
55
+ # ngrok_thread.daemon = True
56
+ # ngrok_thread.start()
57
+ # logger.info("ngrok is running in the background")
58
 
59
  class EndpointHandler:
60
  def __init__(self, path=""):