* image update

* file path change
This commit is contained in:
Meroy Chen 2021-03-26 13:51:21 +08:00 коммит произвёл GitHub
Родитель 6ba3e649f0
Коммит e86aae1fa2
Не найден ключ, соответствующий данной подписи
Идентификатор ключа GPG: 4AEE18F83AFDEB23
3 изменённых файлов: 6 добавлений и 6 удалений

Просмотреть файл

@ -95,7 +95,7 @@ def process_port_data(db_port_data: json) -> json:
"""
exec_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(os.path.dirname(__file__)))))
config_file_path = f"{exec_path}\\nginx\\static\\"
config_file_path = f"{exec_path}/nginx/static/"
with open(f"{config_file_path}port_list.json", "r", encoding="utf8")as port_list_file:
port_list = json.load(port_list_file)
port_list = port_list[0]["port_list"]

Просмотреть файл

@ -77,7 +77,7 @@ def process_vessel_data(db_vessel_data: json, start_tick: str) -> json:
"""
exec_path = os.path.dirname(os.path.dirname(os.path.dirname(os.path.abspath(os.path.dirname(__file__)))))
config_file_path = f"{exec_path}\\nginx\\static\\config.json"
config_file_path = f"{exec_path}/nginx/static/config.json"
with open(config_file_path, "r")as mapping_file:
cim_information = json.load(mapping_file)
vessel_list = list(cim_information["vessels"].keys())

Просмотреть файл

@ -21,7 +21,7 @@ def start_geo_vis(start: str, experiment_name: str, front_end_port: int, **kwarg
if start == 'database':
# Start the databse container.
database_start_path = f"{grader_path}\\streamit\\server"
database_start_path = f"{grader_path}/streamit/server"
subprocess.check_call(
'sh run_docker.sh',
cwd=database_start_path
@ -81,12 +81,12 @@ def start_geo_vis(start: str, experiment_name: str, front_end_port: int, **kwarg
exec_path = os.path.dirname(inspect.getfile(inspect.currentframe()))
if front_end_port is not None:
change_file_content(
f"{exec_path}\\.env",
f"{exec_path}/.env",
"FRONT_END_PORT",
f"FRONT_END_PORT={front_end_port}"
)
change_file_content(
f"{exec_path}\\front_end\\nginx.conf",
f"{exec_path}/front_end/nginx.conf",
"listen",
f"\t\tlisten\t\t{front_end_port};"
)
@ -95,7 +95,7 @@ def start_geo_vis(start: str, experiment_name: str, front_end_port: int, **kwarg
'sh run_docker.sh',
cwd=exec_path
)
back_end_path = f"{exec_path}\\back_end\\vis_app\\app.py"
back_end_path = f"{exec_path}/back_end/vis_app/app.py"
os.system(f"python {back_end_path}")
else: