Created
July 23, 2012 22:12
-
-
Save blanchma/3166569 to your computer and use it in GitHub Desktop.
mongoid.yml
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
development: | |
sessions: | |
default: | |
database: logservice_development | |
hosts: | |
- localhost:27017 | |
options: | |
# Change whether the session persists in safe mode by default. | |
# (default: false) | |
# safe: false | |
# Change the default consistency model to :eventual or :strong. | |
# :eventual will send reads to secondaries, :strong sends everything | |
# to master. (default: :eventual) | |
consistency: :strong | |
test: | |
sessions: | |
default: | |
database: logservice_test | |
hosts: | |
- localhost:27017 | |
options: | |
consistency: :strong | |
staging: | |
sessions: | |
default: | |
database: logservice_staging | |
hosts: | |
- localhost:27017 | |
options: | |
consistency: :strong | |
production: | |
sessions: | |
default: | |
database: logservice_production | |
hosts: | |
- localhost:27017 | |
options: | |
consistency: :strong |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment