chore: Add documentation for DATABASE_URL environment variable (#1146)

This commit is contained in:
Pranav Raj S 2020-08-14 17:29:35 +05:30 committed by GitHub
parent be91b322a4
commit f5374e0cd9
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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: