From 63da63e95bc04065e467baf7792b6c1043107f40 Mon Sep 17 00:00:00 2001 From: fsociety Date: Wed, 9 Oct 2024 12:20:59 +0200 Subject: [PATCH] =?UTF-8?q?=F0=9F=9A=80=20feat(logs):=20remove=20condition?= =?UTF-8?q?al=20log=20tracking=20for=20haven-tor?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 📖 docs(README): add instructions for updating environment variables 🐳 fix(start-relay): rebuild images before starting Docker Compose services 🐳 fix(start-relay-tor): rebuild images before starting Docker Compose services --- README.md | 13 +++++++++++++ scripts/logs.sh | 5 ----- scripts/start-relay-tor.sh | 2 +- scripts/start-relay.sh | 2 +- 4 files changed, 15 insertions(+), 7 deletions(-) diff --git a/README.md b/README.md index 27227c0..aead572 100644 --- a/README.md +++ b/README.md @@ -137,3 +137,16 @@ Then, restart the relay: # or ./scripts/start-relay-tor.sh ``` + +### 10. Updating environment variables or relay JSON files + +If you need to update the environment variables or relay JSON files, you can do so by editing the `.env` file or the +`relays_import.json` and `relays_blastr.json` files. After making the changes, restart the relay: + +```bash +./scripts/stop.sh +# then +./scripts/start-relay.sh +# or +./scripts/start-relay-tor.sh +``` diff --git a/scripts/logs.sh b/scripts/logs.sh index 289ef3e..debaaa6 100755 --- a/scripts/logs.sh +++ b/scripts/logs.sh @@ -9,10 +9,5 @@ follow_logs() { # Track logs for haven-relay follow_logs haven-relay & -# Track logs for haven-tor when specified as an argument -if [[ "$1" == "haven-tor" || "$2" == "haven-tor" ]]; then - follow_logs haven-tor & -fi - # Wait for CTRL+C to cancel log display wait diff --git a/scripts/start-relay-tor.sh b/scripts/start-relay-tor.sh index 6b8f50f..01ed57b 100755 --- a/scripts/start-relay-tor.sh +++ b/scripts/start-relay-tor.sh @@ -11,7 +11,7 @@ fi # Pull the latest images and start the services echo "Starting Docker Compose services..." -$DOCKER_COMPOSE_COMMAND -f docker-compose.tor.yml up -d +$DOCKER_COMPOSE_COMMAND -f docker-compose.tor.yml up --build -d # Display the status of the services $DOCKER_COMPOSE_COMMAND -f docker-compose.tor.yml ps diff --git a/scripts/start-relay.sh b/scripts/start-relay.sh index 23a5a8c..452d6c6 100755 --- a/scripts/start-relay.sh +++ b/scripts/start-relay.sh @@ -4,7 +4,7 @@ DOCKER_COMPOSE_COMMAND="docker compose" # Pull the latest images and start the services echo "Starting Docker Compose services..." -$DOCKER_COMPOSE_COMMAND up -d +$DOCKER_COMPOSE_COMMAND up --build -d # Display the status of the services $DOCKER_COMPOSE_COMMAND ps