Skip to content

Commit

Permalink
🚀 feat(logs): remove conditional log tracking for haven-tor
Browse files Browse the repository at this point in the history
📖 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
  • Loading branch information
fsociety committed Oct 9, 2024
1 parent bfab9f2 commit 63da63e
Show file tree
Hide file tree
Showing 4 changed files with 15 additions and 7 deletions.
13 changes: 13 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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
```
5 changes: 0 additions & 5 deletions scripts/logs.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
2 changes: 1 addition & 1 deletion scripts/start-relay-tor.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
2 changes: 1 addition & 1 deletion scripts/start-relay.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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

0 comments on commit 63da63e

Please sign in to comment.