Require dotenv init
This commit is contained in:
parent
e294d98fdf
commit
1b7e5470e3
1 changed files with 1 additions and 4 deletions
|
|
@ -35,10 +35,7 @@ routes(app)
|
|||
|
||||
/* Init server and server port */
|
||||
|
||||
const port = process.env.PORT || 6969
|
||||
process.env.PORT = String(port)
|
||||
|
||||
// TODO: logging
|
||||
const port = process.env.PORT
|
||||
|
||||
app.listen(port, () => {
|
||||
process.stdout.write(`Listening on port ${port}\n`)
|
||||
|
|
|
|||
Loading…
Reference in a new issue