ga-dc / wdi5-project4

3 stars 0 forks source link

Heroku Deployment Issue, Error code H20 & H10 #151

Closed luminousbeam closed 9 years ago

luminousbeam commented 9 years ago

The print screen below is of the heroku log errors I am showing when trying to load my site, I am showing errors "H20 - App boot timeout The router will enqueue requests for 75 seconds while waiting for starting processes to reach an “up” state. If after 75 seconds, no web dynos have reached an “up” state, the router logs H20 and serves a standard error page." and "H10 - App crashed A crashed web dyno or a boot timeout on the web dyno will present this error."

snip20150605_1

jrhorn424 commented 9 years ago

This usually happens when you've created an infinite loop somewhere in your app.

luminousbeam commented 9 years ago

I was able to resolve my deployment issue by adding this snippit of code to my index.js (others may have called it app.js) file, we can close this issue:

app.listen(process.env.PORT || 3000, function(){
  console.log("Express server listening on port %d in %s mode", this.address().port, app.settings.env);
});

http://stackoverflow.com/questions/18679690/heroku-nodejs-app-with-r10-h10-and-h20-errors