Skip to content

Commit

Permalink
Add port for heroku
Browse files Browse the repository at this point in the history
  • Loading branch information
Ian Fosbery committed Apr 16, 2018
1 parent cb122ee commit fd4cdf0
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion server.js
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@ app.delete('/notes/:id', async function(req, res) {
res.redirect('/notes')
})

app.listen('3000', function() {
const appPort = process.env.PORT || 3000
app.listen(appPort, function() {
console.log('App is running on port 3000')
})

0 comments on commit fd4cdf0

Please sign in to comment.