mirror of
https://github.com/discourse/discourse.git
synced 2024-12-19 06:15:51 +08:00
DEV: Remove line of code that does not work (#30258)
We can't delete the file from disk as some of the assets are still served by the app instead of going through the S3 bucket. It is a bug we need to fix but it also means this ENV is unsafe now. Just drop the env until we ensure all assets requested by the app are requested from the S3 bucket directly.
This commit is contained in:
parent
ae6fca2f0b
commit
ebfc33b556
|
@ -40,8 +40,6 @@ def upload(path, remote_path, content_type, content_encoding = nil, logger:)
|
|||
|
||||
File.open(path) { |file| helper.upload(file, remote_path, options) }
|
||||
end
|
||||
|
||||
File.delete(path) if (File.exist?(path) && ENV["DELETE_ASSETS_AFTER_S3_UPLOAD"])
|
||||
end
|
||||
|
||||
def use_db_s3_config
|
||||
|
|
Loading…
Reference in New Issue
Block a user