mirror of
https://github.com/discourse/discourse.git
synced 2025-02-25 18:55:32 -06:00
Be slightly less aggressive at clearing assets
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user