user3596881
user3596881

Reputation: 19

Application failure when deploying heroku app

I run heroku open I get an application error. I check the logs and this is there:

2016-06-19T05:22:44.640391+00:00 heroku[router]: at=error code=H10 desc="App crashed" method=GET path="/" host=drawparty-.herokuapp.com request_id=6712804b-95f9-49ce-92a5-7f45df7bb79e fwd="108.172.11.245" dyno= connect= service= status=503

I cannot seem to fix this error. Some things I have tried:

heroku restart
bundle install
heroku run rake db:migrate

The error is H10 which is found here (where's the solution?): https://devcenter.heroku.com/articles/error-codes#h10-app-crashed

Upvotes: 1

Views: 195

Answers (1)

Tinus Wagner
Tinus Wagner

Reputation: 927

This is in all likelihood caused by your gems and which environments you've specified them in. Heroku requires some default gems in your production ENV such as rails_12factor & pg.

group :production do 
  gem 'rails_12factor'
  gem 'pg'
end

PG acts as the interface between Rails and PostgreSQL DB's, which is the default DB for Heroku, BUT not in in a new Rails App.

Upvotes: 2

Related Questions