mirror of
https://github.com/discourse/discourse.git
synced 2025-05-30 07:11:34 +08:00
logster integration (in production as well)
This commit is contained in:
@ -1,7 +1,3 @@
|
||||
require "#{Rails.root}/lib/discourse_redis"
|
||||
|
||||
$redis = DiscourseRedis.new
|
||||
|
||||
if Rails.env.development? && ENV['DISCOURSE_FLUSH_REDIS']
|
||||
puts "Flushing redis (development mode)"
|
||||
$redis.flushall
|
||||
@ -16,3 +12,4 @@ if defined?(PhusionPassenger)
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
|
Reference in New Issue
Block a user