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:
parent
ddabb1187f
commit
06577a4e01
1 changed files with 3 additions and 2 deletions
|
@ -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.
|
||||
|
||||
|
|
Loading…
Reference in a new issue