mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-16 16:16:43 +10:00
Merge branch 'rs-sentry-release-tracking' into 'master'
Add release tracking for Sentry See merge request !2863
This commit is contained in:
committed by
Rémy Coutable
parent
10354f7a58
commit
6eacfa9986
@@ -3,6 +3,6 @@ module Gitlab
|
||||
Settings
|
||||
end
|
||||
|
||||
VERSION = File.read(Rails.root.join("VERSION")).strip
|
||||
REVISION = Gitlab::Popen.popen(%W(#{config.git.bin_path} log --pretty=format:%h -n 1)).first.chomp
|
||||
VERSION = File.read(Rails.root.join("VERSION")).strip.freeze
|
||||
REVISION = Gitlab::Popen.popen(%W(#{config.git.bin_path} log --pretty=format:%h -n 1)).first.chomp.freeze
|
||||
end
|
||||
|
||||
@@ -14,6 +14,7 @@ if Rails.env.production?
|
||||
if sentry_enabled
|
||||
Raven.configure do |config|
|
||||
config.dsn = current_application_settings.sentry_dsn
|
||||
config.release = Gitlab::REVISION
|
||||
end
|
||||
end
|
||||
end
|
||||
|
||||
Reference in New Issue
Block a user