Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
6c9ae675
Commit
6c9ae675
authored
Feb 15, 2016
by
Robert Speicher
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Add release tracking for Sentry
parent
ff28ac9c
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
2 deletions
+3
-2
config/initializers/2_app.rb
config/initializers/2_app.rb
+2
-2
config/initializers/sentry.rb
config/initializers/sentry.rb
+1
-0
No files found.
config/initializers/2_app.rb
View file @
6c9ae675
...
...
@@ -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
config/initializers/sentry.rb
View file @
6c9ae675
...
...
@@ -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
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment