Update handler.py
Browse files- 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 |
-
|
|
|
|
|
|
|
| 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 |
|