From 33dd2c3fdb04ce82fd4f91a1aabfb34a1ac384ef Mon Sep 17 00:00:00 2001 From: sTiKyt Date: Sat, 30 May 2020 17:58:05 +0300 Subject: [PATCH] Added auth_token string... --- Defs/ActionManager/Server/server_runner.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/Defs/ActionManager/Server/server_runner.py b/Defs/ActionManager/Server/server_runner.py index cb17c52..1e97a2f 100644 --- a/Defs/ActionManager/Server/server_runner.py +++ b/Defs/ActionManager/Server/server_runner.py @@ -83,7 +83,8 @@ def start_localhost(port): def start_ngrok(port): - ngrok.DEFAULT_CONFIG_PATH = path.join(".config/ngrok.yml") + ngrok.DEFAULT_CONFIG_PATH = ".config/ngrok.yml" + # ngrok.set_auth_token("") # Will be easier to input later run_command(['killall', '-2', 'ngrok'], stdout=DEVNULL, stderr=DEVNULL) run_command('clear') # print(''' @@ -98,7 +99,7 @@ def start_ngrok(port): # run_command(['./Server/ngrok http {0}'.format(port)], stdout=DEVNULL, stderr=DEVNULL) ##chmod('Server', 0o777) ##run_command(['Server/ngrok', 'http {0}'.format(port)],stdout=DEVNULL, stderr=DEVNULL) - ngrok.connect(port) + ngrok.connect(port=int(port)) # currentDirectory = os.getcwd() #DELETE # print(currentDirectory) #DELETE while True: