diff --git a/app/lib/workers.rb b/app/lib/workers.rb index d435375c..3b8cebf6 100644 --- a/app/lib/workers.rb +++ b/app/lib/workers.rb @@ -1,4 +1,17 @@ require 'sidekiq' +Sidekiq.configure_server do |config| + config.redis = { + url: ENV["REDIS_URL"], + ssl_params: { verify_mode: OpenSSL::SSL::VERIFY_NONE } + } +end +Sidekiq.configure_client do |config| + config.redis = { + url: ENV["REDIS_URL"], + ssl_params: { verify_mode: OpenSSL::SSL::VERIFY_NONE } + } +end + require "#{File.expand_path '../..', __FILE__}/workers/buffy_worker.rb" Dir["#{File.expand_path '../..', __FILE__}/workers/**/*.rb"].sort.each { |f| require f } \ No newline at end of file