-
-
Save agibralter/c96b08807529056a8caf to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# environments/production.rb | |
config.middleware.use Rack::Mole, { | |
:moleable => true | |
:app_name => 'app', | |
:environment => 'production' | |
:user_key => :user_credentials_id, | |
:store => Rackamole::Store::MongoDb.new(:db_name => 'mole_app_production_mdb') | |
} | |
# environments/staging.rb | |
config.middleware.use Rack::Mole, { | |
:moleable => true | |
:app_name => 'app', | |
:environment => 'staging' | |
:user_key => :user_credentials_id, | |
:store => Rackamole::Store::MongoDb.new(:db_name => 'mole_app_staging_mdb') | |
} | |
# environments/development.rb | |
config.middleware.use Rack::Mole, { | |
:moleable => true | |
:app_name => 'app', | |
:environment => 'development' | |
:user_key => :user_credentials_id, | |
:store => Rackamole::Store::MongoDb.new(:db_name => 'mole_app_development_mdb') | |
} | |
# environments/test.rb | |
config.middleware.use Rack::Mole, { | |
:moleable => false | |
} | |
# environments/features.rb | |
config.middleware.use Rack::Mole, { | |
:moleable => true | |
:app_name => 'app', | |
:environment => 'features' | |
:user_key => :user_credentials_id, | |
:store => Rackamole::Store::MongoDb.new(:db_name => 'mole_app_features_mdb') | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment