mirror of
https://github.com/discourse/discourse.git
synced 2025-03-22 07:46:40 +08:00
FEATURE: add support for backup asset path post precompile
This commit is contained in:
parent
2640b4e173
commit
e14a63cc88
@ -174,6 +174,12 @@ task 'assets:precompile' => 'assets:precompile:before' do
|
|||||||
|
|
||||||
# protected
|
# protected
|
||||||
manifest.send :save
|
manifest.send :save
|
||||||
|
|
||||||
|
if backup_path=ENV["BACKUP_ASSET_PATH"]
|
||||||
|
FileUtils.cp_r("#{Rails.root}/public/assets/.", backup_path)
|
||||||
|
end
|
||||||
|
|
||||||
|
|
||||||
end
|
end
|
||||||
|
|
||||||
end
|
end
|
||||||
|
Loading…
x
Reference in New Issue
Block a user