Allow the server port to be configurable via config.js

This commit is contained in:
base of tree
2014-07-11 10:23:18 -07:00
parent 48f859a8a8
commit fa875e9123
2 changed files with 2 additions and 1 deletions
+1 -1
View File
@@ -16,7 +16,7 @@ app.configure(function() {
app.use(express.errorHandler({dumpExceptions: true, showStack: true}));
});
var port = 3000;
var port = config.port;
server.listen(port, function() {
console.log( 'Express server listening on port %d in %s mode', port, app.settings.env );
});