Reputation: 23
My app is working locally, But after deploying to Heroku I'm getting an 'Internal Server Error' on my page
The Error log is as follows.
http://pastie.org/private/b5lgfmij1by3krieyp9sq
I cannot see what the problem is
Thanks for your help!
Upvotes: 2
Views: 1354
Reputation: 11342
The problem is related to your database (or lack of):
2013-05-13T06:58:57.488018+00:00 app[web.1]: PG::Error - could not connect to server: Connection refused
Did you add one with $ heroku addons:add heroku-postgresql:[dev|basic|crane|etc] -a app_name
? Checkout this Dev Center article with info on setting up Rack based web apps (including Sinatra) and setting up database access:
Upvotes: 2