Merge commit '061348f9d2108644db47f2f1e13853a4f9c93eeb'

* commit '061348f9d2108644db47f2f1e13853a4f9c93eeb':
  Use process.env.PORT when available
This commit is contained in:
Jason Haines 2016-04-16 17:38:28 +10:00
commit 331e6556b6

View File

@ -11,6 +11,7 @@ var env = {
AUTH0_CLIENT_ID: process.env.AUTH0_CLIENT_ID, AUTH0_CLIENT_ID: process.env.AUTH0_CLIENT_ID,
AUTH0_DOMAIN: process.env.AUTH0_DOMAIN, AUTH0_DOMAIN: process.env.AUTH0_DOMAIN,
} }
var port = process.env.PORT || 3001;
app.set('views', __dirname + '/views') app.set('views', __dirname + '/views')
app.set('view engine', 'jade'); app.set('view engine', 'jade');
@ -37,7 +38,7 @@ app.get('/', function (req, res) {
) )
}) })
http.listen(3001, function(){ http.listen(port, function(){
console.log('listening on *:3001'); console.log('listening on *:' + port);
}); });