FEATURE: add support for backup asset path post precompile

This commit is contained in:
Sam 2017-03-20 13:05:39 -04:00
parent 2640b4e173
commit e14a63cc88
1 changed files with 6 additions and 0 deletions

View File

@ -174,6 +174,12 @@ task 'assets:precompile' => 'assets:precompile:before' do
# protected
manifest.send :save
if backup_path=ENV["BACKUP_ASSET_PATH"]
FileUtils.cp_r("#{Rails.root}/public/assets/.", backup_path)
end
end
end