A platform for community discussion. Free, open, simple.
DEV: Allow removing local assets after s3 sync (#14013)
Rafael dos Santos Silvab2e4c918187a
diff --git a/lib/tasks/s3.rake b/lib/tasks/s3.rakeindex 7f6b0f79b9d..e775e5c260e 100644--- a/lib/tasks/s3.rake+++ b/lib/tasks/s3.rake@@ -37,6 +37,8 @@ def upload(path, remote_path, content_type, content_encoding = nil)helper.upload(file, remote_path, options)endend++ File.delete(path) if (File.exists?(path) && ENV["DELETE_ASSETS_AFTER_S3_UPLOAD"])enddef use_db_s3_config