From 3df26aa214ab6825a2771fd920e6cd716d297d87 Mon Sep 17 00:00:00 2001 From: Lucas Patenaude Date: Wed, 1 May 2024 00:43:45 -0600 Subject: [PATCH] Fix after database interactions were broken by removal of .env file --- index.js | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/index.js b/index.js index 0d2eb38..54910ea 100644 --- a/index.js +++ b/index.js @@ -25,15 +25,17 @@ const hbs = handlebars.create({ partialsDir: __dirname + '/src/views/partials', }); +// database configuration // database configuration const dbConfig = { host: 'db', // the database server port: 5432, // the database port - database: process.env.POSTGRES_DB, // the database name - user: process.env.POSTGRES_USER, // the user account to connect with - password: process.env.POSTGRES_PASSWORD, // the password of the user account + database: "users_db", // the database name + user: "postgres", // the user account to connect with + password: "pwd", // the password of the user account }; + const db = pgp(dbConfig); // test your database