common: &common hosts: localhost password: development: <<: *common bucket: <%= database_name || 'default' %> test: <<: *common bucket: <%= database_name || app_name %>_test password: for_test_bucket # set these environment variables on your production server production: hosts: <%%= ENV['COUCHBASE_HOST'] || ENV['COUCHBASE_HOSTS'] %> bucket: <%%= ENV['COUCHBASE_BUCKET'] %> password: <%%= ENV['COUCHBASE_PASSWORD'] %>