From af6bf9608c9d47c9d98ee8a1b1cbe12225b12334 Mon Sep 17 00:00:00 2001 From: Stuart Watson Date: Fri, 29 Jan 2021 11:19:40 +0000 Subject: [PATCH] Changed to only run task on production deploys --- config/deploy.rb | 1 - config/deploy/production.rb | 6 ++++++ 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/config/deploy.rb b/config/deploy.rb index 547faddba..bf461fd8a 100644 --- a/config/deploy.rb +++ b/config/deploy.rb @@ -32,5 +32,4 @@ namespace :deploy do after :publishing, 'service:pp_default:restart' after :publishing, 'service:pp_import:restart' - after :published, 'deploy:clear_cache' end diff --git a/config/deploy/production.rb b/config/deploy/production.rb index 0b4cb165d..c449dfca3 100644 --- a/config/deploy/production.rb +++ b/config/deploy/production.rb @@ -11,6 +11,12 @@ +namespace :deploy do + after :published, 'deploy:clear_cache' +end + + + # server-based syntax # ====================== # Defines a single server with a list of roles and multiple properties.