Skip to content

Commit

Permalink
environment variable for ngrok authtoken instead of hardcoding
Browse files Browse the repository at this point in the history
  • Loading branch information
leozhang14 committed Jun 4, 2024
1 parent 5d3c115 commit 70116e6
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 6 deletions.
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -110,9 +110,9 @@ npx prisma studio
### Set-up
1. Create an [ngrok](https://dashboard.ngrok.com/signup) account

2. Insert your personal ngrok authentication token in docker-compose.yml:
2. Insert your personal ngrok authentication token as an environment variable in the .env file of the root directory:
```bash
NGROK_AUTHTOKEN=<insert-your-token>
NGROK_AUTHTOKEN=${authtoken}
```

3. Run the application:
Expand All @@ -122,9 +122,9 @@ docker compose up --build

### Troubleshooting

If another service is occupying port 5000, identify the PID of the service:
If another service is occupying port 5001, identify the PID of the service:
```bash
sudo lsof -i :5000
sudo lsof -i :5001
```

Kill the occupying service:
Expand Down
3 changes: 1 addition & 2 deletions docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,6 @@ services:
depends_on:
- ts-backend
environment:
- NGROK_AUTHTOKEN=${authtoken} # store personal authtoken (generated from signing up for ngrok account) as environment variable: authoken=INSERT_AUTH_TOKEN_HERE

- NGROK_AUTHTOKEN=${authtoken}
volumes:
postgres_data:

0 comments on commit 70116e6

Please sign in to comment.