aboutsummaryrefslogtreecommitdiff
path: root/interface/config
diff options
context:
space:
mode:
authorBobby <[email protected]>2022-05-01 01:02:38 -0400
committerGitHub <[email protected]>2022-05-01 01:02:38 -0400
commitb0b1938f0e2ae2d159f0a616f8043d0b7f24f2eb (patch)
tree71ed919b888e83fb49d619d1ba338dcba43b245c /interface/config
parentfd8acf8d1b04368763a97d1452565aa71dcc118a (diff)
parentd527bddaeb3083d2a5ec787626e512eb45d3a967 (diff)
downloadWelfare-Schemes-DMQL-b0b1938f0e2ae2d159f0a616f8043d0b7f24f2eb.tar.xz
Welfare-Schemes-DMQL-b0b1938f0e2ae2d159f0a616f8043d0b7f24f2eb.zip
Merge pull request #4 from luciferreeves/main
Main page changes
Diffstat (limited to 'interface/config')
-rw-r--r--interface/config/db.config.js9
1 files changed, 5 insertions, 4 deletions
diff --git a/interface/config/db.config.js b/interface/config/db.config.js
index 9118d6c..ea90d0c 100644
--- a/interface/config/db.config.js
+++ b/interface/config/db.config.js
@@ -1,14 +1,15 @@
+require('dotenv').config();
module.exports = {
// The name of the database
- database: 'WelfareSchemes',
+ database: process.env.DATABASE,
// The username used to connect to the database
- username: 'postgres',
+ username: process.env.USERNAME,
// The password used to connect to the database
- password: 'lucifer',
+ password: process.env.PASSWORD,
// The dialect of the database you are connecting to
dialect: 'postgres',
// The host of the database
- host: 'localhost',
+ host: process.env.HOST,
// The port of the database
port: 5432,
// Setup pool of connections to the database