Skip to content

Instantly share code, notes, and snippets.

@jasonmccay
Created August 15, 2011 00:39
Show Gist options
  • Save jasonmccay/1145512 to your computer and use it in GitHub Desktop.
Save jasonmccay/1145512 to your computer and use it in GitHub Desktop.
An example mongoid.yml (YAML) file to configure MongoDB replica sets with MongoHQ.
defaults: &defaults
autocreate_indexes: true
max_retries_on_connection_failure: 3
allow_dynamic_fields: false
development:
host: localhost
database: taq_development
test:
host: localhost
database: taq_testing
enable_logging: false
production:
hosts:
- - hurley.member0.mongohq.com
- <port_number>
- - hurley.member1.mongohq.com
- <port_number>
read_secondary: true
username:
password:
database:
enable_logging: false
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment