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