mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
don't try to load airbrake if there is no config for it
This commit is contained in:
@@ -12,7 +12,7 @@ if defined?(PhusionPassenger)
|
||||
if forked
|
||||
# We're in smart spawning mode.
|
||||
$redis = DiscourseRedis.new
|
||||
Discourse::Application.config.cache_store.reconnect# = DiscourseRedis.new_redis_store
|
||||
Discourse::Application.config.cache_store.reconnect
|
||||
else
|
||||
# We're in conservative spawning mode. We don't need to do anything.
|
||||
end
|
||||
|
||||
3
config/initializers/airbrake.rb
Normal file
3
config/initializers/airbrake.rb
Normal file
@@ -0,0 +1,3 @@
|
||||
if Rails.env.production? && File.exists?(Rails.root + '/config/airbrake.rb')
|
||||
require 'airbrake'
|
||||
end
|
||||
Reference in New Issue
Block a user