Rename port env variable port > PORT

This commit is contained in:
Linus Miller 2018-03-07 20:06:11 +01:00
parent f19468435b
commit ec660efccc

View File

@ -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'))})`)