From daf56064719304c606684a9461c598d0d08118c7 Mon Sep 17 00:00:00 2001 From: Jared Pace Date: Sun, 15 Aug 2010 21:44:11 -0400 Subject: [PATCH] Move mongoid.yml to mongoid.example.yml --- config/mongoid.example.yml | 33 +++++++++++++++++++++++++++++++++ config/mongoid.yml | 24 ------------------------ 2 files changed, 33 insertions(+), 24 deletions(-) create mode 100644 config/mongoid.example.yml delete mode 100644 config/mongoid.yml diff --git a/config/mongoid.example.yml b/config/mongoid.example.yml new file mode 100644 index 0000000..67496d6 --- /dev/null +++ b/config/mongoid.example.yml @@ -0,0 +1,33 @@ +# Mongoid Configuration +# ===================== +# +# Copy this file to config/mongoid.yml and +# modify it accordingly. This file will automatically +# be copied to shared/config on the server when +# `cap deploy:setup` is ran the first time. Be sure +# to place production specific settings there + +defaults: &defaults + host: localhost + # slaves: + # - host: slave1.local + # port: 27018 + # - host: slave2.local + # port: 27019 + +development: + <<: *defaults + database: errbit_development + +test: + <<: *defaults + database: errbit_test + +# set these environment variables on your prod server +production: + <<: *defaults + host: <%= ENV['MONGOID_HOST'] %> + port: <%= ENV['MONGOID_PORT'] %> + username: <%= ENV['MONGOID_USERNAME'] %> + password: <%= ENV['MONGOID_PASSWORD'] %> + database: <%= ENV['MONGOID_DATABASE'] %> \ No newline at end of file diff --git a/config/mongoid.yml b/config/mongoid.yml deleted file mode 100644 index f7fb3b6..0000000 --- a/config/mongoid.yml +++ /dev/null @@ -1,24 +0,0 @@ -defaults: &defaults - host: localhost - # slaves: - # - host: slave1.local - # port: 27018 - # - host: slave2.local - # port: 27019 - -development: - <<: *defaults - database: errbit_development - -test: - <<: *defaults - database: errbit_test - -# set these environment variables on your prod server -production: - <<: *defaults - host: <%= ENV['MONGOID_HOST'] %> - port: <%= ENV['MONGOID_PORT'] %> - username: <%= ENV['MONGOID_USERNAME'] %> - password: <%= ENV['MONGOID_PASSWORD'] %> - database: <%= ENV['MONGOID_DATABASE'] %> \ No newline at end of file -- libgit2 0.21.2