mongoid.example.yml
975 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
# 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
development:
sessions:
default:
database: errbit_development
hosts:
- localhost:27017
options:
identity_map_enabled: true
use_utc: true
test:
sessions:
default:
hosts:
- localhost:27017
database: errbit_test
options:
identity_map_enabled: true
use_utc: true
# set these environment variables on your prod server
production:
sessions:
default:
database: <%= ENV['MONGOID_DATABASE'] %>
hosts:
- '<%=ENV["MONGOID_HOST"]%>:<%=ENV["MONGOID_PORT"]%>'
username: <%= ENV['MONGOID_USERNAME'] %>
password: <%= ENV['MONGOID_PASSWORD'] %>
options:
identity_map_enabled: true