chore: Add documentation for DATABASE_URL environment variable (#1146)
This commit is contained in:
parent
be91b322a4
commit
f5374e0cd9
1 changed files with 9 additions and 1 deletions
|
@ -6,7 +6,15 @@ title: "Environment Variables"
|
|||
|
||||
### Database configuration
|
||||
|
||||
Use the following values in database.yml which lives inside `config` directory.
|
||||
You can set Postgres connection URI as `DATABASE_URL` in the environment to connect to the database.
|
||||
|
||||
The URI is of the format
|
||||
|
||||
```bash
|
||||
postgresql://[user[:password]@][netloc][:port][,...][/dbname][?param1=value1&...]
|
||||
```
|
||||
|
||||
Alternatively, use the following values in database.yml which lives inside `config` directory.
|
||||
|
||||
```bash
|
||||
development:
|
||||
|
|
Loading…
Reference in a new issue