Make port configurable via IPP_PORT
This commit is contained in:
1 parent
d1475538c5
commit
89f468418c
1 file changed
+3
-2
+3
-2
@@ -146,6 +146,7 @@ app.get('*', (req, res) => {
|
||||
})
|
||||
|
||||
// Start the ExpressJS server
|
||||
app.listen(3000, () => {
|
||||
console.log(dayjs().format() + ' Server started')
|
||||
const port = process.env.IPP_PORT || 3000;
|
||||
app.listen(port, () => {
|
||||
console.log(dayjs().format() + ' Server started on port ' + port)
|
||||
})
|
||||
Reference in new issue
Block a user