From 1979ad13f39bdf88adfda5cf5d6be2d0ac44a350 Mon Sep 17 00:00:00 2001 From: Molly Struve Date: Mon, 2 Dec 2019 11:51:04 -0600 Subject: [PATCH] replace DEPLOYMENT_SIGNATURE with HEROKU_SLUG_COMMIT to bust caches on deploy (#4950) [deploy] --- .rubocop_todo.yml | 10 ++++++++++ Envfile | 4 ++-- app/views/articles/_sidebar.html.erb | 2 +- app/views/layouts/_styles.html.erb | 2 +- app/views/layouts/application.html.erb | 2 +- app/views/liquid_embeds/show.html.erb | 2 +- app/views/pages/live.html.erb | 2 +- app/views/pages/onboarding.html.erb | 6 +++--- app/views/partnerships/index.html.erb | 2 +- app/views/partnerships/show.html.erb | 2 +- app/views/pro_memberships/show.html.erb | 2 +- 11 files changed, 23 insertions(+), 13 deletions(-) diff --git a/.rubocop_todo.yml b/.rubocop_todo.yml index c4a04b846..724ba512f 100644 --- a/.rubocop_todo.yml +++ b/.rubocop_todo.yml @@ -60,8 +60,16 @@ Rails/OutputSafety: - 'app/models/display_ad.rb' - 'app/models/message.rb' - 'app/views/articles/_actions.html.erb' + - 'app/views/articles/_sidebar.html.erb' - 'app/views/articles/feed.rss.builder' - 'app/views/articles/show.html.erb' + - 'app/views/layouts/_styles.html.erb' + - 'app/views/liquid_embeds/show.html.erb' + - 'app/views/pages/live.html.erb' + - 'app/views/pages/onboarding.html.erb' + - 'app/views/partnerships/index.html.erb' + - 'app/views/partnerships/show.html.erb' + - 'app/views/pro_memberships/show.html.erb' # Offense count: 25 # Cop supports --auto-correct. @@ -82,3 +90,5 @@ Style/GuardClause: # URISchemes: http, https Metrics/LineLength: Max: 380 + Exclude: + - 'app/views/layouts/_styles.html.erb' diff --git a/Envfile b/Envfile index 7b12399c1..cda57d8d4 100644 --- a/Envfile +++ b/Envfile @@ -29,8 +29,8 @@ variable :DEFAULT_SITE_EMAIL, :String, default: "yo@dev.to" variable :RACK_TIMEOUT_WAIT_TIMEOUT, :Integer, default: 100_000 variable :RACK_TIMEOUT_SERVICE_TIMEOUT, :Integer, default: 100_000 -# Production related config that can be ignored -variable :DEPLOYMENT_SIGNATURE, :String, default: "Optional" +# Heroku release slug used to bust caches on deploys +variable :HEROKU_SLUG_COMMIT, :String, default: "Optional" # Redis caching storage variable :REDIS_URL, :String, default: "redis://localhost:6379" diff --git a/app/views/articles/_sidebar.html.erb b/app/views/articles/_sidebar.html.erb index 73333e667..d383d4cbd 100644 --- a/app/views/articles/_sidebar.html.erb +++ b/app/views/articles/_sidebar.html.erb @@ -1,7 +1,7 @@