Skip to content

Commit 6f84ad8

Browse files
committed
Added safe and refresh intervals to mongoid configuration per mongolab advice
1 parent a738e98 commit 6f84ad8

File tree

2 files changed

+14
-1
lines changed

2 files changed

+14
-1
lines changed

config/mongoid.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,3 +45,11 @@ production:
4545
# Note that if you have a long-running query (over 30 seconds), it will time out.
4646
# See our example for long-running queries in the blog post referenced above.
4747
timeout: 15
48+
49+
# Set this to ensure that your writes are a round-trip operation
50+
# and are confirmed by the system.
51+
safe: true
52+
53+
# refresh_interval specifies the number of seconds to cache server information.
54+
# Lowering this number will help the driver recover more quickly from changes to replica set reconfiguration
55+
refresh_interval: 10

script/ide

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,15 @@
44

55
SESSION=coderwall
66

7+
rvm use ruby-2.1.2@coderwall
8+
79
# Go to working directory
810

9-
#cd ~/assemblymade/coderwall
11+
cd
12+
cd $HOME/assemblymade/coderwall
1013

14+
bundle install
15+
bundle clean --force
1116
vagrant up --no-provision
1217

1318
# Session Exists?

0 commit comments

Comments
 (0)