Closed digitalWestie closed 9 years ago
So you are probably missing the pgsql heroku addon. Dashing-rails does not really need a SQL database to work but your rails application mounting dashing is probably using active record by default.
It is up to you to setup the rails application the way you want. If you want to use mongodb you would deactivate active record related code and install the mongodb heroku addon for example.
Regarding the database_connection.rb
here is more information on why it's needed https://devcenter.heroku.com/articles/concurrency-and-database-connections#threaded-servers
Thanks for the info, the code in the heroku article has a few extra lines that might be missing so I'll try those out. Edit; yes I've got the pgsql addon
I have a basic dashing rails app and I've followed the wiki on running dashing-rails on heroku but I get the following error:
As an experiment I commented out the database_connection.rb code and it works okay.
Has the same happened to anybody else? Also, could somebody explain a little bit about what the above code does, and if it's needed?