refoundd commited on
Commit
87d41e5
·
verified ·
1 Parent(s): 527fdc1

Update handler.py

Browse files
Files changed (1) hide show
  1. handler.py +3 -1
handler.py CHANGED
@@ -50,7 +50,9 @@ for command in commands:
50
  except subprocess.CalledProcessError as e:
51
  logger.info(f"Failed CMD: {e}")
52
 
53
- # Do not wait for the process to finish
 
 
54
  logger.info("Ngrok is running in the background.")
55
 
56
 
 
50
  except subprocess.CalledProcessError as e:
51
  logger.info(f"Failed CMD: {e}")
52
 
53
+
54
+ subprocess.Popen(['ngrok', 'http', '5000'], stdout=subprocess.PIPE, stderr=subprocess.PIPE)
55
+
56
  logger.info("Ngrok is running in the background.")
57
 
58