# Upload assets to S3 after in-browser upgrade

**URL:** <https://meta.discourse.org/t/upload-assets-to-s3-after-in-browser-upgrade/153519>\
**Category:** Product Support\
**Created:** [June 2, 2020, 4:11am UTC](https://meta.discourse.org/t/upload-assets-to-s3-after-in-browser-upgrade/153519 "2020-06-02T04:11:03Z")\
**Posts on this page:** 1\
**Showing post:** 1

<div class="post-metadata">

**Author:** ![taher1](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/taher1/32/182563_2.png) [@taher1](https://meta.discourse.org/u/taher1)\
**Post date:** [June 2, 2020, 4:11am UTC](https://meta.discourse.org/t/upload-assets-to-s3-after-in-browser-upgrade/153519/1 "2020-06-02T04:11:03Z")

</div>

After moving my site’s images and assets (js) to s3, I tried to upgrade the forum by using the `/admin/upgrade` interface. It upgraded fine but it seems like it didn’t upload the assets to s3 bucket, rendering by site unavailable untill I rebuilt the app from the shell.  
There I have a hook which does it for me. It would be nice to have this sort of functionality in web interface aswell. I don’t know if it’s already present if it is please let me know. 🙂

```yaml
 after_assets_precompile:
   - exec:
       cd: $home
       cmd:
         - sudo -E -u discourse bundle exec rake s3:upload_assets

```

---

_[View the full topic](https://meta.discourse.org/t/upload-assets-to-s3-after-in-browser-upgrade/153519)._
