fix: default pwd in docker

This commit is contained in:
Ting-Jun Wang 2024-07-31 15:06:33 +08:00
parent 6e3abf3835
commit 8f8897338a
Signed by: snsd0805
GPG Key ID: D175E969960C4B16

8
db.js
View File

@ -28,9 +28,9 @@ const db = require("mariadb");
// create pool
const pool = db.createPool({
connectionLimit : 10,
host : 'localhost',
user : 'user',
password : '',
host : 'db-in-docker',
user : 'root',
password : 'ncnu',
database : 'scholarship'
});
@ -56,4 +56,4 @@ module.exports = {
console.error("error closing db connection : ", e);
}
}
}
}