Skip to content

Instantly share code, notes, and snippets.

@charlenopires
Created June 19, 2012 04:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save charlenopires/2952294 to your computer and use it in GitHub Desktop.
Save charlenopires/2952294 to your computer and use it in GitHub Desktop.
Mongoid.yml for MongoHQ+Heroku
Command: heroku config e verifique o endereço do MONGOHQ_URL gerado pelo AddOn
Crie um Mongoid.yml no diretório /config seguindo o seguinte contexto:
development:
host: localhost
database: yourapp_development
test:
host: localhost
database: yourapp_test
production:
uri: mongodb://heroku:yourpassword@staff.mongohq.com:<port>/yourapp_production
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment