diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index f3865dad2..40ec79483 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -50,7 +50,7 @@ <% end %> -<% content_for :footer_version, CURRENT_RELEASE_SHA %> +<% content_for :footer_version, ENV.fetch("SENTRY_RELEASE", "null")[0..18] %> <% content_for :body_end do %> <%= javascript_include_tag "application" %> diff --git a/config/initializers/current_release_sha.rb b/config/initializers/current_release_sha.rb deleted file mode 100644 index e68ebecc3..000000000 --- a/config/initializers/current_release_sha.rb +++ /dev/null @@ -1,6 +0,0 @@ -if File.exist?(Rails.root.join("REVISION")) - revision = `cat #{Rails.root}/REVISION`.chomp - CURRENT_RELEASE_SHA = revision[0..10] # Just get the short SHA -else - CURRENT_RELEASE_SHA = "development".freeze -end