diff --git a/app/lib/workers.rb b/app/lib/workers.rb index d435375c..a51f8d5a 100644 --- a/app/lib/workers.rb +++ b/app/lib/workers.rb @@ -1,4 +1,18 @@ 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 diff --git a/app/workers/buffy_worker.rb b/app/workers/buffy_worker.rb index d5aae24f..71f774d6 100644 --- a/app/workers/buffy_worker.rb +++ b/app/workers/buffy_worker.rb @@ -2,6 +2,7 @@ require 'erb' require 'faraday' require 'sidekiq' +require 'ostruct' require_relative '../lib/defaults' require_relative '../lib/github'