development:
  host: localhost
  database: govuk_content_development
  persist_in_safe_mode: true
  autocreate_indexes: true

test:
  host: localhost
  # Don't want this interfering with a concurrent publisher/content_api test run
  database: govuk_content_manuals_publisher_test
  autocreate_indexes: true

production:
  database: govuk_content_production
  refresh_mode: :sync
  logger: false
  refresh_interval: 120
  use_activesupport_time_zone: true
  hosts:
    - <%= ENV['MONGODB_NODES'] %>

development:
  uri: 'mongodb://localhost'
  database: govuk_content_development
  persist_in_safe_mode: true
  autocreate_indexes: true

test:
  uri: 'mongodb://localhost'
  # Don't want this interfering with a concurrent publisher/content_api test run
  database: govuk_content_manuals_publisher_test
  autocreate_indexes: true

production:
  uri: <%= ENV['MONGODB_URI'] %>
  database: govuk_content_production
  refresh_mode: :sync
  logger: false
  refresh_interval: 120
  use_activesupport_time_zone: true

Use MONGODB_URI env var in Mongoid config
Use MONGODB_URI env var in Mongoid config

Now that the application is using Ruby v2.2.4, it seems as if Mongoid
can parse URIs containing multiple comma-separated hosts.

We're hoping that this will allow us to re-apply the changes in #928 to
upgrade Mongoid from v2.5.2 to v2.8.1 which we had to revert in #935,
because of a problem in the integration deployment - specifically
during the pre-compilation of assets which happens to be the first time
the production Mongoid configuration is used.

Fixes #930.
