MongoDB config & TrackData model

This commit is contained in:
magnolia-fan
2011-04-07 06:50:02 +04:00
parent a9b4a46c59
commit 3c96c151bd
8 changed files with 72 additions and 18879 deletions
+23
View File
@@ -0,0 +1,23 @@
defaults: &defaults
host: localhost
# slaves:
# - host: slave1.local
# port: 27018
# - host: slave2.local
# port: 27019
development:
<<: *defaults
database: beathaven
test:
<<: *defaults
database: beathaven_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'] %>