mirror of
https://github.com/discourse/discourse.git
synced 2024-11-27 07:33:36 +08:00
16 lines
378 B
Ruby
16 lines
378 B
Ruby
require "#{Rails.root}/lib/discourse_redis"
|
|
|
|
$redis = DiscourseRedis.new
|
|
|
|
if Rails.env.development?
|
|
puts "Flushing redis (development mode)"
|
|
$redis.flushall
|
|
end
|
|
|
|
Sidekiq.configure_server do |config|
|
|
config.redis = { :url => $redis.url, :namespace => 'sidekiq' }
|
|
end
|
|
|
|
Sidekiq.configure_client do |config|
|
|
config.redis = { :url => $redis.url, :namespace => 'sidekiq' }
|
|
end |