From cfa588203514289b9868e3227970b5ff416d43fd Mon Sep 17 00:00:00 2001 From: Sam Date: Fri, 7 Feb 2014 21:43:05 +1100 Subject: [PATCH] Be slightly less aggressive at clearing assets --- lib/tasks/assets.rake | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/tasks/assets.rake b/lib/tasks/assets.rake index 64548cc4d49..2baeb2b75bc 100644 --- a/lib/tasks/assets.rake +++ b/lib/tasks/assets.rake @@ -1,4 +1,3 @@ - task 'assets:precompile:before' do unless %w{profile production}.include? Rails.env @@ -7,9 +6,8 @@ task 'assets:precompile:before' do # Ensure we ALWAYS do a clean build # We use many .erbs that get out of date quickly, especially with plugins - puts "Purging old assets" + puts "Purging temp files" `rm -fr #{Rails.root}/tmp/cache` - `rm -fr #{Rails.root}/public/assets` # in the past we applied a patch that removed asset postfixes, but it is terrible practice # leaving very complicated build issues