Skip to content

Commit de89ff4

Browse files
committed
Allowing port to be configured through env.
1 parent 1da5edf commit de89ff4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ app.get("/get", function(req, res) {
2727
});
2828
});
2929

30-
var server = app.listen(3000, function() {
30+
var server = app.listen(process.env.PORT || 3000, function() {
3131
var host = server.address().address;
3232
var port = server.address().port;
3333
console.log("Server listening at http://%s:%s", host, port);

0 commit comments

Comments
 (0)