Skip to content

Commit

Permalink
Add ngrok set-up instructions in README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
aayushh-patell committed Jun 4, 2024
1 parent e577bd9 commit b9e81d9
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 1 deletion.
31 changes: 31 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -106,6 +106,37 @@ Open Prisma studio:
npx prisma studio
```

## Ngrok
### Set-up
1. Create an [ngrok](https://dashboard.ngrok.com/signup) account

2. Insert your personal ngrok authentication token in docker-compose.yml:
```bash
NGROK_AUTHTOKEN=<insert-your-token>
```

3. Run the application:
```bash
docker compose up --build
```

### Troubleshooting

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

Kill the occupying service:
```bash
sudo kill <PID>
```

Run the application again:
```bash
docker compose up --build
```

## The Team
### Term 1 (W24):
**Project Lead:** N/A<br>
Expand Down
2 changes: 1 addition & 1 deletion docker-compose.yml
Original file line number Diff line number Diff line change
Expand Up @@ -62,7 +62,7 @@ services:
depends_on:
- ts-backend
environment:
- NGROK_AUTHTOKEN=2gqfbeXPRkhFsAGXsIpFZJCiitr_7VbDSwxB2h9Z6HbeK259K
- NGROK_AUTHTOKEN=<insert-your-token>

volumes:
postgres_data:

0 comments on commit b9e81d9

Please sign in to comment.