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 */
|
/* Init server and server port */
|
||||||
|
|
||||||
const port = process.env.PORT || 6969
|
const port = process.env.PORT
|
||||||
process.env.PORT = String(port)
|
|
||||||
|
|
||||||
// TODO: logging
|
|
||||||
|
|
||||||
app.listen(port, () => {
|
app.listen(port, () => {
|
||||||
process.stdout.write(`Listening on port ${port}\n`)
|
process.stdout.write(`Listening on port ${port}\n`)
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue