config sidekiq

This commit is contained in:
Connor Turland 2014-10-08 01:42:16 -04:00
parent 19987594d6
commit bac631ba73

View file

@ -0,0 +1,9 @@
redis_url = Rails.env.development? ? 'redis://localhost:6379/0' : ENV['REDISTOGO_URL']
Sidekiq.configure_server do |config|
config.redis = { :url => redis_url, :namespace => 'metamaps' }
end
Sidekiq.configure_client do |config|
config.redis = { :url => redis_url, :namespace => 'metamaps' }
end