From 300716812bf3fd068ed90415ea9d8c2cdc200780 Mon Sep 17 00:00:00 2001 From: Ivan <Ppechenkooo@gmail.com> Date: Sun, 16 Jul 2023 20:02:59 +0300 Subject: [PATCH] update DB info --- server.js | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/server.js b/server.js index e4bdd87..332e3ab 100644 --- a/server.js +++ b/server.js @@ -23,12 +23,20 @@ app.get("/devices/drivers", drivers); app.get("/devices/newdevice", newdevice); app.get("/devices/newdriver", newdriver); +// const pool = new Pool({ +// user: process.env.DB_USER, +// host: process.env.DB_HOST, +// database: process.env.DB_NAME, +// password: process.env.DB_PASSWORD, +// port: process.env.DB_PORT, +// }); + const pool = new Pool({ - user: process.env.DB_USER, - host: process.env.DB_HOST, - database: process.env.DB_NAME, - password: process.env.DB_PASSWORD, - port: process.env.DB_PORT, + user: "postgres", + host: "postgres", + database: "postgres", + password: "password", + port: "5432", }); async function index(req, res) {