From the looks of it your problem is to do with your connection to your mongodb
. I think this maybe as simple as just ensuring that you have started the MongoDB service
. Take a look at the following link it MongoDB Installation. Dependent on which OS you are on will depend on which commands you need to execute. But I thoroughly believe you should take a look and ensure you have installed it correctly and the service is running, as this is the root of your problem.
Further to this also found out that you have to install the MongoHQ add-on in Heroku. This creates a MONGOHQ_URL
ENV variable which supposedly is what your application uses to connect to the database.
Command to add MongoHQ - heroku addons:add mongohq
Also you may want to look at the following MongoDB - Ruby to ensure your database.yml
is setup correctly. You will see under the section highlighted Mongoid 2.x. Dependent on what version you are using will deter the setup you follow as you will notice as you scroll further down there is a section for Mongoid 3.x. Hope this helps.