Commit daf56064719304c606684a9461c598d0d08118c7

Authored by Jared Pace
1 parent 609af31a
Exists in master and in 1 other branch production

Move mongoid.yml to mongoid.example.yml

Showing 2 changed files with 33 additions and 24 deletions   Show diff stats
config/mongoid.example.yml 0 → 100644
@@ -0,0 +1,33 @@ @@ -0,0 +1,33 @@
  1 +# Mongoid Configuration
  2 +# =====================
  3 +#
  4 +# Copy this file to config/mongoid.yml and
  5 +# modify it accordingly. This file will automatically
  6 +# be copied to shared/config on the server when
  7 +# `cap deploy:setup` is ran the first time. Be sure
  8 +# to place production specific settings there
  9 +
  10 +defaults: &defaults
  11 + host: localhost
  12 + # slaves:
  13 + # - host: slave1.local
  14 + # port: 27018
  15 + # - host: slave2.local
  16 + # port: 27019
  17 +
  18 +development:
  19 + <<: *defaults
  20 + database: errbit_development
  21 +
  22 +test:
  23 + <<: *defaults
  24 + database: errbit_test
  25 +
  26 +# set these environment variables on your prod server
  27 +production:
  28 + <<: *defaults
  29 + host: <%= ENV['MONGOID_HOST'] %>
  30 + port: <%= ENV['MONGOID_PORT'] %>
  31 + username: <%= ENV['MONGOID_USERNAME'] %>
  32 + password: <%= ENV['MONGOID_PASSWORD'] %>
  33 + database: <%= ENV['MONGOID_DATABASE'] %>
0 \ No newline at end of file 34 \ No newline at end of file
config/mongoid.yml
@@ -1,24 +0,0 @@ @@ -1,24 +0,0 @@
1 -defaults: &defaults  
2 - host: localhost  
3 - # slaves:  
4 - # - host: slave1.local  
5 - # port: 27018  
6 - # - host: slave2.local  
7 - # port: 27019  
8 -  
9 -development:  
10 - <<: *defaults  
11 - database: errbit_development  
12 -  
13 -test:  
14 - <<: *defaults  
15 - database: errbit_test  
16 -  
17 -# set these environment variables on your prod server  
18 -production:  
19 - <<: *defaults  
20 - host: <%= ENV['MONGOID_HOST'] %>  
21 - port: <%= ENV['MONGOID_PORT'] %>  
22 - username: <%= ENV['MONGOID_USERNAME'] %>  
23 - password: <%= ENV['MONGOID_PASSWORD'] %>  
24 - database: <%= ENV['MONGOID_DATABASE'] %>  
25 \ No newline at end of file 0 \ No newline at end of file