Skip to content
This repository was archived by the owner on Oct 11, 2023. It is now read-only.

Commit b4e49c3

Browse files
greenie-msftdaniv-msft
authored andcommitted
Update server.js
1 parent 1f9e062 commit b4e49c3

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

samples/BikeSharingApp/Bikes/server.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -349,7 +349,7 @@ app.get('/hello', function(req, res) {
349349
});
350350

351351
// start server ------------------------------------------------------------
352-
var port = 80;
352+
var port = process.env.PORT || 3000;
353353
var server = null;
354354

355355
process.on("SIGINT", () => {
@@ -403,4 +403,4 @@ async.retry({times: 10, interval: 1000}, tryMongoConnect, function(err, result)
403403
server = app.listen(port, function () {
404404
console.log('Listening on port ' + port);
405405
});
406-
});
406+
});

0 commit comments

Comments
 (0)