Commit 04aa4362 by jimabramson

override mongoid.yml defaults from env

parent 5b9f339b
......@@ -17,9 +17,9 @@ common: &default_session
skip_version_check: true
safe: true
consistency: strong
max_retries: 1
retry_interval: 0
timeout: 0.5
max_retries: <%= ENV['MONGOID_MAX_RETRIES'] || 1 %>
retry_interval: <%= ENV['MONGOID_RETRY_INTERVAL'] || 0 %>
timeout: <%= ENV['MONGOID_TIMEOUT'] || 0.5 %>
production:
sessions:
......
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