allow for url config for sidekiq

This commit is contained in:
Kyle Drake 2014-04-30 14:34:58 -07:00
parent 17fbbd8e7a
commit 6bb59ffbf2

View file

@ -37,12 +37,15 @@ end
Sidekiq::Logging.logger = nil unless ENV['RACK_ENV'] == 'production'
sidekiq_redis_config = {namespace: 'neocitiesworker'}
sidekiq_redis_config[:url] = $config['sidekiq_url'] if $config['sidekiq_url']
Sidekiq.configure_server do |config|
config.redis = { namespace: 'neocitiesworker' }
config.redis = sidekiq_redis_config
end
Sidekiq.configure_client do |config|
config.redis = { namespace: 'neocitiesworker' }
config.redis = sidekiq_redis_config
end
require File.join(DIR_ROOT, 'workers', 'thumbnail_worker.rb')