mirror of
https://github.com/discourse/discourse.git
synced 2025-01-19 02:52:44 +08:00
Fix confusing ENV in migrate_to_s3
rake task.
This commit is contained in:
parent
87b5003453
commit
433f07fcb3
|
@ -278,13 +278,7 @@ def migrate_to_s3
|
|||
print " - Listing S3 files"
|
||||
|
||||
s3_objects = []
|
||||
|
||||
prefix =
|
||||
if ENV["SKIP_MULTISITE_PREFIX"] || Rails.configuration.multisite
|
||||
"uploads/#{db}/original/"
|
||||
else
|
||||
"original/"
|
||||
end
|
||||
prefix = ENV["MIGRATE_TO_MULTISITE"] ? "uploads/#{db}/original/" : "original/"
|
||||
|
||||
options = { bucket: bucket, prefix: folder + prefix }
|
||||
|
||||
|
|
Loading…
Reference in New Issue
Block a user