mirror of
https://github.com/discourse/discourse.git
synced 2026-08-10 04:58:31 -05:00
DEV: Allow removing local assets after s3 sync (#14013)
This commit is contained in:
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user