Skip to content

Commit 4d2ed64

Browse files
committed
Updated the mongoid configuration to use recommended defaults by MongoLab
1 parent 5cf94c5 commit 4d2ed64

File tree

1 file changed

+21
-13
lines changed

1 file changed

+21
-13
lines changed

config/mongoid.yml

Lines changed: 21 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,31 @@
11
development:
2-
sessions:
3-
default:
4-
database: badgify_development
5-
hosts:
6-
- localhost
2+
sessions:
3+
default:
4+
database: badgify_development
5+
hosts:
6+
- localhost
77

88
test:
99
sessions:
10-
default:
11-
database: badgify_test
12-
hosts:
13-
- localhost
10+
default:
11+
database: badgify_test
12+
hosts:
13+
- localhost
1414

1515
staging:
1616
sessions:
17-
default:
18-
uri: <%= ENV['MONGOLAB_URI'] %>
17+
default:
18+
uri: <%= ENV['MONGOLAB_URI'] %>
1919

2020
production:
2121
sessions:
22-
default:
23-
uri: <%= ENV['MONGOLAB_URI'] %>
22+
default:
23+
uri: <%= ENV['MONGOLAB_URI'] %>
24+
options:
25+
consistency: :strong
26+
max_retries: 30
27+
retry_interval: 1
28+
timeout: 15
29+
30+
31+

0 commit comments

Comments
 (0)