config sidekiq
This commit is contained in:
parent
19987594d6
commit
bac631ba73
1 changed files with 9 additions and 0 deletions
9
config/initializers/sidekiq.rb
Normal file
9
config/initializers/sidekiq.rb
Normal 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
|
Loading…
Reference in a new issue