I am trying to deploy a more or less blank Rails app to Heroku, but I keep getting the “We’re sorry but something went wrong” message..
The only error-ish line in the Heroku logs is this:
2013-01-11T19:30:59+00:00 heroku[router]: at=info method=GET path=/ host=murmuring-sierra-7952.herokuapp.com fwd=2.111.66.39 dyno=web.1 queue=0 wait=0ms connect=3ms service=718ms status=500 bytes=643
I understand this as heroku not being able to fetch the root path..
The only thing I have done apart from creating the app is to generate a controller, blogs, with index, show, new etc. and replace the root in my routes.rb as such:
resources :blogs
root :to => "blogs#index"
and i even added
match '/' => "blogs#index"
to make sure that “/” actually points to blogs#index
It all works fine on localhost, btw
Thanks, Viggo
Heroku doesn’t work with sqlite3, it works with postgresql.
You should have the following inside your gemfile:
Then run
You will find more information in heroku’s own section on how to get started.