Commit 4dc4b354 authored by Sylvain Coulange's avatar Sylvain Coulange
Browse files

change port to process.env

parent 72863d81
......@@ -7,11 +7,12 @@ const compression = require('compression');
const helmet = require('helmet');
app.listen(8080); //, '127.0.0.1'
// // PORT
// const {port=8080} = process.env;
// app.listen(port, () => console.log(`Listening on port ${port}...`));
// PORT
//const {port=8080} = process.env;
const port = precess.env;
app.listen(port, () => console.log(`Listening on port ${port}...`));
// server.listen(port, hostname, () => {
// console.log(`Server running at http://${hostname}:${port}/`);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment