Skip to content

Commit 3d0aa99

Browse files
authored
Merge pull request #67 from CodeForBaltimore/jbixon13-docs-dotenv
Update README - .env
2 parents aebbeb0 + 1d0e83d commit 3d0aa99

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -53,9 +53,9 @@ JWT_KEY=<your secret JWT seed phrase or key>
5353
DATABASE_URL=<your connection string based on above variables>
5454
' >> ./.env
5555
```
56-
The `DATABASE_URL` is not a very clear var name, and the string is broken down as `postgress://username:password@host:port/database_name`
56+
The `DATABASE_URL` is not a very clear var name, and the string is broken down as `postgres://username:password@host:port/database_name`
5757

58-
An example of the `DATABASE_URL` would be `DATABASE_URL=postgres://user:pass@localhost:5432/dbname`
58+
An example of the `DATABASE_URL` would be `DATABASE_URL=postgres://postgres:postgres@localhost:5432/postgres`
5959

6060
The various variables are defined as follows:
6161
- `NODE_ENV` = The label for your environment.
@@ -69,7 +69,7 @@ _We do not recommend using the default options for PostgreSQL. The above values
6969

7070
**Warning**: If you are running Docker Toolbox instead of Docker Desktop (likely meaning you are running Windows 10 Home, not Professional) you will need to change your `.env` to reflect Docker running on a VM:
7171
- `DATABASE_HOST`: The IP address Docker is running on. You can find this by running `docker-machine ip` but it's usually `192.168.99.100` instead of `localhost`
72-
- `DATABASE_URL`: This will need to be adjusted as well, for example `DATABASE_URL=postgres://postgres:.@localhost:5432/postgres` would become `DATABASE_URL=postgres://postgres:.@192.168.99.100:5432/postgres`
72+
- `DATABASE_URL`: This will need to be adjusted as well, for example `DATABASE_URL=postgres://postgres:postgres@localhost:5432/postgres` would become `DATABASE_URL=postgres://postgres:postgres@192.168.99.100:5432/postgres`
7373

7474
## 2.3. PostgreSQL
7575
***You will need a PostgreSQL database running locally to run this application locally.*** You may setup PostgreSQL however you wish, however we recommend using Docker using the instructions found here: https://hub.docker.com/_/postgres

0 commit comments

Comments
 (0)