Compare commits

...

2 Commits

Author SHA1 Message Date
8f8897338a
fix: default pwd in docker 2024-07-31 15:06:33 +08:00
6e3abf3835
feat: change port 2024-07-31 14:33:44 +08:00
2 changed files with 5 additions and 5 deletions

6
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'
});

View File

@ -34,7 +34,7 @@ app.use('/css', express.static('./css'));
// });
const port = 5001;
const port = 5000;
// 如何處理不同的 request參數分別為 url 和要執行的 function
app.get('/', (req, res) => {