Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Add mongoid config

  • Loading branch information...
commit ab24ef92856b0d1f7d7aa0e169a9dab38339dbdb 1 parent b90f422
@lisovskyvlad authored
Showing with 20 additions and 0 deletions.
  1. +20 −0 config/mongoid.yml
View
20 config/mongoid.yml
@@ -0,0 +1,20 @@
+development:
+ host: localhost
+ database: blog_development
+
+test:
+ host: localhost
+ database: blog_test
+
+# set these environment variables on your prod server
+production:
+ host: <%= ENV['MONGOID_HOST'] %>
+ port: <%= ENV['MONGOID_PORT'] %>
+ username: <%= ENV['MONGOID_USERNAME'] %>
+ password: <%= ENV['MONGOID_PASSWORD'] %>
+ database: <%= ENV['MONGOID_DATABASE'] %>
+ # slaves:
+ # - host: slave1.local
+ # port: 27018
+ # - host: slave2.local
+ # port: 27019
Please sign in to comment.
Something went wrong with that request. Please try again.