From 6ab78696c18d4441e0d4c6ed5c2113e86e33b879 Mon Sep 17 00:00:00 2001 From: Adrian D'Alessandro Date: Thu, 8 Feb 2024 15:38:55 +0000 Subject: [PATCH 1/2] Use String for boolean value in docker-compose.yaml --- configure.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/configure.py b/configure.py index 5bf4b81..411363b 100755 --- a/configure.py +++ b/configure.py @@ -71,7 +71,7 @@ def generate_docker_compose(template_file: str, ip: str, develop: bool = False) "API_URL": f"http://{lines_to_replace['OVE_HOST']}", "PLOT_URL": f"http://{lines_to_replace['PLOT_URL']}", "DH_URL": f"http://{lines_to_replace['DH_URL']}", - "LOG_LEVEL": "INFO", + "LOG_LEVEL": "DEBUG", }, "depends_on": ["nginx"], } @@ -86,7 +86,7 @@ def generate_docker_compose(template_file: str, ip: str, develop: bool = False) docker_compose["services"]["dash"][ "image" ] = "ghcr.io/imperialcollegelondon/gridlington-vis:latest" - docker_compose["services"]["dash"]["environment"]["LIVE_MODEL"] = True + docker_compose["services"]["dash"]["environment"]["LIVE_MODEL"] = "true" # Configure logging for nginx logging.info("Adding volume for nginx logs...") From cf4e0308263f66fdcaed1a882a55c000d2600161 Mon Sep 17 00:00:00 2001 From: Adrian D'Alessandro Date: Thu, 8 Feb 2024 15:39:38 +0000 Subject: [PATCH 2/2] Use python3 in run files so it works on the server --- run.sh | 2 +- run_develop.sh | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/run.sh b/run.sh index 83334d1..08e05cc 100644 --- a/run.sh +++ b/run.sh @@ -1,2 +1,2 @@ -python configure.py +python3 configure.py docker-compose up -d diff --git a/run_develop.sh b/run_develop.sh index 5a82aac..1d6bf5e 100644 --- a/run_develop.sh +++ b/run_develop.sh @@ -1,2 +1,2 @@ -python configure.py develop +python3 configure.py develop docker-compose up -d