I am trying to use MongoHQ with my rails app which uses mongoid. I want to host the app at heroku. From the guide on heroku website, I should add this to my mongoid.yml
:
production:
sessions:
default:
uri: <%= ENV['MONGOHQ_URL'] %>
options:
skip_version_check: true
safe: true
My question is, do I have to replace <%= ENV['MONGOHQ_URL'] %>
with the URI of the following format:
MONGOHQ_URL: mongodb://<user>:<pass>@hatch.mongohq.com:10034/app003132345
I try replacing it and not replacing it. Either way, I got this error in the log (plus a bunch more, but I suspect this one).
MOPED: Could not resolve IP address for <myusername>
Are there anything else besides, adding this to mongoid.yml and add add-on for mongoHQ in heroku?