Skip to content

Commit

Permalink
Make the port configurable
Browse files Browse the repository at this point in the history
  • Loading branch information
adrianheine committed Mar 7, 2014
1 parent cdaecd1 commit 317d011
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app.js
Expand Up @@ -87,8 +87,8 @@ app.get('/:format?/:mod?', (function () {
}()));

// Start server

app.listen(3000);
var port = process.env.PORT || 3000;
app.listen(port);

console.log("Express server listening on port %d in %s mode",
app.address().port, app.settings.env);

0 comments on commit 317d011

Please sign in to comment.