added socket url to config file

This commit is contained in:
Abubakar Abid 2019-03-07 15:11:34 -08:00
parent 3c31394902
commit 8952e41304
2 changed files with 4 additions and 1 deletions

View File

@ -103,6 +103,8 @@ def render_template_with_tags(template_path, context):
def set_ngrok_url_in_js(temp_dir, ngrok_socket_url):
js_file = os.path.join(temp_dir, BASE_JS_FILE)
render_template_with_tags(js_file, {'ngrok_socket_url': ngrok_socket_url})
config_file = os.path.join(temp_dir, CONFIG_FILE)
render_template_with_tags(config_file, {'ngrok_socket_url': ngrok_socket_url})
def set_socket_port_in_js(temp_dir, socket_port):

View File

@ -1,4 +1,5 @@
{
"input_interface_type": "{{input_interface_type}}",
"output_interface_type": "{{output_interface_type}}"
"output_interface_type": "{{output_interface_type}}",
"ngrok_socket_url": "{{ngrok_socket_url}}"
}