Skip to content
Kareem Kouddous edited this page Feb 11, 2014 · 3 revisions

Configuration Options

If you use Promiscuous in production, you will most likely need to tweak the configuration options. We recommend using an initializer like so:

# config/initializers/promiscuous.rb
Promiscuous.configure do |config|
  # All the settings are optional, the given values are the defaults.
  config.app            = 'inferred_from_the_rails_app_name'
  config.amqp_url       = 'amqp://guest:guest@localhost:5672'
  config.redis_url      = 'redis://localhost/'
  config.backend        = :rubyamqp
  config.logger         = Rails.logger
  config.error_notifier = proc { |exception| nil }
end

You may set the backend to :null when running your test suite to use Promiscuous in pretend mode.