Skip to content

Commit

Permalink
update port setting for heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
mikepmunroe committed Mar 6, 2014
1 parent e66bb5f commit 376ff91
Showing 1 changed file with 4 additions and 2 deletions.
6 changes: 4 additions & 2 deletions server.js
Expand Up @@ -27,5 +27,7 @@ var wods = require('./routes/wods');
app.get('/crossfitwicked/wods', wods.findAll);
app.get('/crossfitwicked/wods/:id', wods.findById);

app.listen(3000);
console.log('Listening on port 3000...');
var port = Number(process.env.PORT || 3000);
app.listen(port, function() {
console.log("Listening on " + port);
});

0 comments on commit 376ff91

Please sign in to comment.