Skip to content

Instantly share code, notes, and snippets.

@kjs3 kjs3/gist:396773
Created May 11, 2010

Embed
What would you like to do?
defaults: &defaults
# host: localhost
# slaves:
# - host: slave1.local
# port: 27018
# - host: slave2.local
# port: 27019
host: <%= ENV['MONGOID_HOST'] %>
port: <%= ENV['MONGOID_PORT'] %>
username: <%= ENV['MONGOID_USERNAME'] %>
password: <%= ENV['MONGOID_PASSWORD'] %>
development:
<<: *defaults
database: <%= ENV['MONGOID_DATABASE_DEV'] %>
test:
<<: *defaults
database: <%= ENV['MONGOID_DATABASE_TEST'] %>
# set these environment variables on your prod server
production:
<<: *defaults
host: <%= ENV['MONGOID_HOST'] %>
port: <%= ENV['MONGOID_PORT'] %>
username: <%= ENV['MONGOID_USERNAME'] %>
password: <%= ENV['MONGOID_PASSWORD'] %>
database: <%= ENV['MONGOID_DATABASE_PROD'] %>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.