A discussion about the rake uploads:migrate_to_s3 task needing attention. pfaffman initially reported issues with GlobalSetting.use_s3 and environment variables, but tgxworld clarified that the code remains valid. pfaffman expressed confusion about the task reading variables from SiteSettings and defining backup and upload buckets from the S3 bucket. tgxworld explained that only SiteSettings marked as shadowed_by_global can be configured via environment variables and provided links to relevant code, concluding that this is not a bug.
The uploads:migrate_to_s3 rake task could use some attention.
There is no GlobalSetting.use_s3?, but a GlobalSetting.use_s3 and the ENV variables have changed, as DISCOURSE_S3_BUCKET has been replaced by DISCOURSE_S3_UPLOAD_BUCKET.
I’m only a little bit sure that I know how to fix this, and I think that it’s fresh in @gerhard’s mind.
I think I’m confused because it seems like it should be able to read those variables from SiteSettings and I don’t understand how the backup and upload buckets get defined from just the S3 bucket.