mirror of
https://github.com/codeninjasllc/discourse.git
synced 2024-11-24 08:09:13 -05:00
239cbd2d58
replaced every `and` by `&&` and every `or` by `||`
16 lines
No EOL
408 B
Ruby
16 lines
No EOL
408 B
Ruby
require "#{Rails.root}/lib/discourse_redis"
|
|
|
|
$redis = DiscourseRedis.new
|
|
|
|
if Rails.env.development? && !ENV['DO_NOT_FLUSH_REDIS']
|
|
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 |