2016-01-29 22:53:50 +05:30
|
|
|
# Be sure to restart your server when you modify this file.
|
|
|
|
|
|
|
|
require 'gitlab/current_settings'
|
|
|
|
include Gitlab::CurrentSettings
|
|
|
|
|
|
|
|
if Rails.env.production?
|
|
|
|
# allow it to fail: it may do so when create_from_defaults is executed before migrations are actually done
|
|
|
|
begin
|
|
|
|
sentry_enabled = current_application_settings.sentry_enabled
|
|
|
|
rescue
|
|
|
|
sentry_enabled = false
|
|
|
|
end
|
|
|
|
|
|
|
|
if sentry_enabled
|
|
|
|
Raven.configure do |config|
|
|
|
|
config.dsn = current_application_settings.sentry_dsn
|
2016-04-02 18:10:28 +05:30
|
|
|
config.release = Gitlab::REVISION
|
2016-01-29 22:53:50 +05:30
|
|
|
end
|
|
|
|
end
|
|
|
|
end
|