# \`rake uploads:migrate\_to\_s3\` يحتاج إلى بعض الاهتمام

**URL:** <https://meta.discourse.org/t/rake-uploads-migrate-to-s3-needs-some-love/109497>\
**Category:** Bug\
**Created:** [18 فبراير 2019، 10:55م UTC](https://meta.discourse.org/t/rake-uploads-migrate-to-s3-needs-some-love/109497 "2019-02-18T22:55:26Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![pfaffman](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/pfaffman/32/120154_2.png) [@pfaffman](https://meta.discourse.org/u/pfaffman)\
**Post date:** [18 فبراير 2019، 10:55م UTC](https://meta.discourse.org/t/rake-uploads-migrate-to-s3-needs-some-love/109497/1 "2019-02-18T22:55:26Z")

</div>

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`.

> <https://github.com/discourse/discourse/blob/main/lib/tasks/uploads.rake#L231>

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. 🙂

---

_[View the full topic](https://meta.discourse.org/t/rake-uploads-migrate-to-s3-needs-some-love/109497)._
