From f5374e0cd9dc45fe8ab08c37514cb17b2e356ec5 Mon Sep 17 00:00:00 2001 From: Pranav Raj S Date: Fri, 14 Aug 2020 17:29:35 +0530 Subject: [PATCH] chore: Add documentation for DATABASE_URL environment variable (#1146) --- .../development/project-setup/environment-variables.md | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) diff --git a/docs/development/project-setup/environment-variables.md b/docs/development/project-setup/environment-variables.md index e92523355..b77ca33ca 100644 --- a/docs/development/project-setup/environment-variables.md +++ b/docs/development/project-setup/environment-variables.md @@ -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: