metamaps--metamaps/config/initializers/sidekiq.rb
2014-10-08 01:42:16 -04:00

9 lines
No EOL
300 B
Ruby

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