logster integration (in production as well)

This commit is contained in:
Sam
2014-05-07 08:23:52 +10:00
parent e9de700dca
commit 4af0aa9cbc
8 changed files with 52 additions and 16 deletions

View File

@ -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