port env conf
This commit is contained in:
parent
4eddd1a0c7
commit
79bdcac9ef
1 changed files with 1 additions and 1 deletions
2
index.js
2
index.js
|
@ -2,7 +2,7 @@ import express from "express";
|
|||
import { doInit } from "./routes/init.js";
|
||||
|
||||
const app = express()
|
||||
const port = 3000;
|
||||
const port = process.env.PORT || 3000;
|
||||
|
||||
app.set('view engine', 'ejs');
|
||||
app.enable('view cache');
|
||||
|
|
Loading…
Reference in a new issue