Commit b59fa107 by jimabramson

Adjust mongoid config to fail quickly when the database is unreachable.

parent 25e86848
...@@ -11,48 +11,40 @@ test: ...@@ -11,48 +11,40 @@ test:
hosts: hosts:
- localhost:27017 - localhost:27017
production: common: &default_session
sessions:
default:
uri: <%= ENV['MONGOHQ_URL'] %> uri: <%= ENV['MONGOHQ_URL'] %>
options: options:
skip_version_check: true skip_version_check: true
safe: true safe: true
consistency: strong consistency: strong
max_retries: 1
retry_interval: 0
timeout: 0.5
production:
sessions:
default:
<<: *default_session
edgeprod: edgeprod:
sessions: sessions:
default: default:
uri: <%= ENV['MONGOHQ_URL'] %> <<: *default_session
options:
skip_version_check: true
safe: true
consistency: strong
edgestage: edgestage:
sessions: sessions:
default: default:
uri: <%= ENV['MONGOHQ_URL'] %> <<: *default_session
options:
skip_version_check: true
safe: true
consistency: strong
staging: staging:
sessions: sessions:
default: default:
uri: <%= ENV['MONGOHQ_URL'] %> <<: *default_session
loadtest: loadtest:
sessions: sessions:
default: default:
uri: <%= ENV['MONGOHQ_URL'] %> <<: *default_session
options:
skip_version_check: true
safe: true
consistency: strong
max_retries: 1
retry_interval: 1
defaults: &defaults defaults: &defaults
use_utc: false use_utc: false
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment