Commit 72863d81 authored by Sylvain Coulange's avatar Sylvain Coulange
Browse files

paramétrage serveur

parent 58572681
......@@ -6,9 +6,12 @@ const requestIp = require('request-ip');
const compression = require('compression');
const helmet = require('helmet');
// PORT
const port = 8080;
app.listen(port, () => console.log(`Listening on port ${port}...`));
app.listen(8080); //, '127.0.0.1'
// // PORT
// const {port=8080} = process.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