diff --git a/lib/tasks/s3.rake b/lib/tasks/s3.rake index 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) end end + + File.delete(path) if (File.exists?(path) && ENV["DELETE_ASSETS_AFTER_S3_UPLOAD"]) end def use_db_s3_config