port as env var
This commit is contained in:
parent
99341d7778
commit
31bd373828
@ -65,7 +65,7 @@ migrate(db, migrations, 1);
|
|||||||
// server
|
// server
|
||||||
|
|
||||||
const app = express();
|
const app = express();
|
||||||
const port = 8080;
|
const port = env.process.PORT || 8080;
|
||||||
|
|
||||||
app.use(express.urlencoded({ extended: true }));
|
app.use(express.urlencoded({ extended: true }));
|
||||||
app.use(compression());
|
app.use(compression());
|
||||||
|
Loading…
Reference in New Issue
Block a user