Created
June 19, 2012 04:33
-
-
Save charlenopires/2952294 to your computer and use it in GitHub Desktop.
Mongoid.yml for MongoHQ+Heroku
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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