Skip to content

Instantly share code, notes, and snippets.

@Navdevl
Created June 29, 2018 06:20
Show Gist options
  • Select an option

  • Save Navdevl/418257a1135ec07fe3d0b54769c02a58 to your computer and use it in GitHub Desktop.

Select an option

Save Navdevl/418257a1135ec07fe3d0b54769c02a58 to your computer and use it in GitHub Desktop.
# This should go to config/initializers/sidekiq.rb
# Follow this so that you can use the env file safely for dockerizing.
sidekiq_config = { url: ENV['REDIS_SIDEKIQ_URL'] }
Sidekiq.configure_server do |config|
config.redis = sidekiq_config
end
Sidekiq.configure_client do |config|
config.redis = sidekiq_config
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment