Skip to content

Commit 30ab325

Browse files
committed
configure IP address via env
1 parent b2d4623 commit 30ab325

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

Diff for: app.js

+2-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@ app.set('view engine', 'pug');
77

88
// server
99
const PORT = process.env.PORT || 3000
10-
app.listen(PORT, () => {
10+
const BIND_IP = process.env.IP_ADDRESS || '0.0.0.0'
11+
app.listen(PORT, BIND_IP, () => {
1112
console.log(`The app is running on ${PORT}.`)
1213
});
1314

0 commit comments

Comments
 (0)