Rename port env variable port > PORT
This commit is contained in:
parent
f19468435b
commit
ec660efccc
@ -46,7 +46,7 @@ server.use('/search-result', (req, res, next) => {
|
||||
// res.send('<h1>Hello</h1>')
|
||||
// })
|
||||
|
||||
const port = process.env.port || 1337
|
||||
const port = process.env.PORT || 1337
|
||||
|
||||
server.listen(port, () => {
|
||||
console.info(`[${chalk.cyan('INIT')}] HTTP Server listening on port ${chalk.magenta(port)} (${chalk.yellow(server.get('env'))})`)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user