Method: Mantle::CLI#configure_sidekiq
- Defined in:
- lib/mantle/cli.rb
#configure_sidekiq ⇒ Object
48 49 50 51 52 53 54 55 56 57 58 59 60 |
# File 'lib/mantle/cli.rb', line 48 def configure_sidekiq if namespace = Mantle.configuration.redis_namespace Mantle.logger.info("Configuring Mantle to listen on Redis namespace: #{namespace}") Sidekiq.configure_client do |config| config.redis = { url: ENV["REDIS_URL"], namespace: namespace } end Sidekiq.configure_server do |config| config.redis = { url: ENV["REDIS_URL"], namespace: namespace } end end end |