Skip to content

Commit 3106403

Browse files
node server port
1 parent 671619b commit 3106403

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

index.js

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ app.get('/', function (req, res) {
1414
res.sendFile('dist/index.html');
1515
});
1616

17-
app.listen(3000, function () {
18-
console.log('Example app listening on port 3000!');
17+
let port = process.env.PORT || 8080;
18+
app.listen(port, function () {
19+
console.log('Example app listening on port: ' + port);
1920
});

0 commit comments

Comments
 (0)