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