From 5883686003edf60991a7b39b822ce0db9337fdc9 Mon Sep 17 00:00:00 2001 From: josc146 Date: Sat, 20 May 2023 15:33:38 +0800 Subject: [PATCH] chore --- backend-python/utils/ngrok.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/backend-python/utils/ngrok.py b/backend-python/utils/ngrok.py index 5364b4c..c697009 100644 --- a/backend-python/utils/ngrok.py +++ b/backend-python/utils/ngrok.py @@ -1,4 +1,5 @@ import os +import sys def ngrok_connect(): @@ -6,5 +7,5 @@ def ngrok_connect(): conf.set_default(conf.PyngrokConfig(ngrok_path="./ngrok")) ngrok.set_auth_token(os.environ["ngrok_token"]) - http_tunnel = ngrok.connect(8000) + http_tunnel = ngrok.connect(8000 if len(sys.argv) == 1 else int(sys.argv[1])) print(http_tunnel.public_url)