Skip to content

Commit

Permalink
Update Readme for env changes
Browse files Browse the repository at this point in the history
  • Loading branch information
ssreekar authored and williamtran10 committed Oct 14, 2023
1 parent 9a81fe3 commit 1d5c658
Showing 1 changed file with 9 additions and 2 deletions.
11 changes: 9 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -36,11 +36,11 @@ cd marillac-place
2. Go into ./backend/typescript and create a .env file
3. In the .env file add the DATABASE_URL

- If on MacOS replace username with your user which can be found in Finder (Finder -> Go -> Home)
- If on (Only if running manual prisma setup) MacOS replace username with your user which can be found in Finder (Finder -> Go -> Home)
- If on Windows replace '<USERNAME>' with 'postgres'

```
DATABASE_URL=postgresql://<USERNAME>:<PASSWORD>@localhost:5432/scv2
DATABASE_URL=postgresql://postgres:postgres@scv2_db:5432/scv2
```

4. Create a .env file at the root with this information
Expand Down Expand Up @@ -68,6 +68,13 @@ docker-compose up --build
Note: Manual Database Setup
If for some reason docker container is not syncing with your prisma models in backend/typescript/prisma/schema

Update .env file in /backend/typescript to be
(Use different username for Mac)

```bash
DATABASE_URL=postgresql://postgres:postgres@localhost:5432/scv2
```

Try running (when the docker container is up):

```
Expand Down

0 comments on commit 1d5c658

Please sign in to comment.