Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Pédagogies Multimodales
PhonoDrop
Commits
4dc4b354
Commit
4dc4b354
authored
Apr 30, 2020
by
Sylvain Coulange
Browse files
change port to process.env
parent
72863d81
Changes
1
Hide whitespace changes
Inline
Side-by-side
index.js
View file @
4dc4b354
...
...
@@ -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}/`);
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment