update DB info
This commit is contained in:
parent
98c01bb8e6
commit
300716812b
18
server.js
18
server.js
@ -23,12 +23,20 @@ app.get("/devices/drivers", drivers);
|
|||||||
app.get("/devices/newdevice", newdevice);
|
app.get("/devices/newdevice", newdevice);
|
||||||
app.get("/devices/newdriver", newdriver);
|
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({
|
const pool = new Pool({
|
||||||
user: process.env.DB_USER,
|
user: "postgres",
|
||||||
host: process.env.DB_HOST,
|
host: "postgres",
|
||||||
database: process.env.DB_NAME,
|
database: "postgres",
|
||||||
password: process.env.DB_PASSWORD,
|
password: "password",
|
||||||
port: process.env.DB_PORT,
|
port: "5432",
|
||||||
});
|
});
|
||||||
|
|
||||||
async function index(req, res) {
|
async function index(req, res) {
|
||||||
|
Loading…
Reference in New Issue
Block a user