mirror of
https://github.com/discourse/discourse.git
synced 2025-02-20 11:48:26 -06:00
BUGFIX: plugins not updating after assets:precompile
Now that we have a fancy cache we can nuke all old assets This is way better cause it ensures all .erbs get re-evaluated And ensures plugins are updated
This commit is contained in:
parent
7feb480e20
commit
8e9cfdfcda
@ -5,6 +5,12 @@ task 'assets:precompile:before' do
|
|||||||
raise "rake assets:precompile should only be run in RAILS_ENV=production, you are risking unminified assets"
|
raise "rake assets:precompile should only be run in RAILS_ENV=production, you are risking unminified assets"
|
||||||
end
|
end
|
||||||
|
|
||||||
|
# Ensure we ALWAYS do a clean build
|
||||||
|
# We use many .erbs that get out of date quickly, especially with plugins
|
||||||
|
puts "Purging old assets"
|
||||||
|
`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
|
# in the past we applied a patch that removed asset postfixes, but it is terrible practice
|
||||||
# leaving very complicated build issues
|
# leaving very complicated build issues
|
||||||
# https://github.com/rails/sprockets-rails/issues/49
|
# https://github.com/rails/sprockets-rails/issues/49
|
||||||
|
Loading…
Reference in New Issue
Block a user