Update handler.py
Browse files- 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 |
-
|
| 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=""):
|