diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 74bbdd6eb..633f35ff5 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -47,7 +47,9 @@ <% if content_for?(:thin_form) %><% end %> <% end %> -<% content_for :footer_version, CURRENT_RELEASE_SHA %> +<% if ENV.key? "SENTRY_RELEASE" %> + <% content_for :footer_version, ENV["SENTRY_RELEASE"] %> +<% end %> <%# use the govuk_admin_template layout %> <%= render :template => 'layouts/govuk_admin_template' %> 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