1
0
Fork 0
mirror of https://github.com/seejohnrun/haste-server.git synced 2024-11-01 11:31:22 +00:00

Update readme for MongoDB

This commit is contained in:
Andrew Molchanov 2020-11-27 02:31:29 +03:00
parent ddabb1187f
commit 06577a4e01
No known key found for this signature in database
GPG key ID: 7C75AA362C5C27FC

View file

@ -165,11 +165,12 @@ Once you've done that, your config section should look like:
``` json
{
"type": "mongodb",
"connectionUrl": "mongodb://localhost:27017/database"
"connectionUrl": "mongodb://localhost:27017",
"connectionName": "database"
}
```
You can also just set the environment variable for `DATABASE_URL` to your database connection url.
You can also just set the environment variable for `DATABASE_URL` to your server connection url and `DATABASE_NAME` for your database name.
Unlike with postgres you do NOT have to create the table in your mongo database prior to running.