You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
DATABASE_URL=<your connection string based on above variables>
54
54
' >> ./.env
55
55
```
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`
57
57
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`
59
59
60
60
The various variables are defined as follows:
61
61
-`NODE_ENV` = The label for your environment.
@@ -69,7 +69,7 @@ _We do not recommend using the default options for PostgreSQL. The above values
69
69
70
70
**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:
71
71
-`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`
73
73
74
74
## 2.3. PostgreSQL
75
75
***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