defaults: &defaults
  host: 127.0.0.1
  port: 27017
  w: 1
  pool_size: 1
  slave_ok: false
  ssl: false

development:
  <<: *defaults
  database: <%= database_name || app_name %>_development

test:
  <<: *defaults
  database: <%= database_name || app_name %>_test
  w: 0

# set these environment variables on your prod server
production:
  <<: *defaults
  database: <%= database_name || app_name %>
  username: <%%= ENV['MONGO_USERNAME'] %>
  password: <%%= ENV['MONGO_PASSWORD'] %>

defaults: &defaults
  host: 127.0.0.1
  port: 27017
  options:
    w: 1
    pool_size: 1
    slave_ok: false
    ssl: false

development:
  <<: *defaults
  database: <%= database_name || app_name %>_development

test:
  <<: *defaults
  database: <%= database_name || app_name %>_test
  w: 0

# set these environment variables on your prod server
production:
  <<: *defaults
  database: <%= database_name || app_name %>
  username: <%%= ENV['MONGO_USERNAME'] %>
  password: <%%= ENV['MONGO_PASSWORD'] %>

Fix options in the template
Fix options in the template
