From 92f7697d0a7cccf3fdb298640e7a72897cb24c4d Mon Sep 17 00:00:00 2001 From: "Ananta Kr. Roy" Date: Wed, 31 Mar 2021 01:28:31 +0530 Subject: [PATCH] Add env variables to db config file --- database.json | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/database.json b/database.json index e733a33..1ce1bce 100644 --- a/database.json +++ b/database.json @@ -2,15 +2,15 @@ "dev": { "driver": "pg", "host": "127.0.0.1", - "database": "shopping", - "user": "shopping_user", - "password": "password123" + "database": {"ENV": "PG_DB"}, + "user": {"ENV": "PG_USER"}, + "password": {"ENV": "PG_PWD"} }, "test": { "driver": "pg", "host": "127.0.0.1", - "database": "shopping_test", - "user": "shopping_user", - "password": "password123" + "database": {"ENV": "PG_DB_TEST"}, + "user": {"ENV": "PG_USER"}, + "password": {"ENV": "PG_PWD"} } } \ No newline at end of file