Skip to content

Commit 00ff60a

Browse files
committed
chore: fallback to "localhost" when DB_HOST isn't specified
1 parent c0b83bc commit 00ff60a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/templates/app.js.ejs

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ app.set('x-powered-by', false)
66

77
const pool = mysql.createPool({
88
connectionLimit: 2,
9-
host: process.env.DB_HOST,
9+
host: process.env.DB_HOST || 'localhost',
1010
user: process.env.DB_USER,
1111
password: process.env.DB_PASSWORD,
1212
database: process.env.DB_NAME

0 commit comments

Comments
 (0)