metamaps--metamaps/config/initializers/sidekiq.rb

9 lines
300 B
Ruby
Raw Normal View History

2014-10-08 05:42:16 +00:00
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