# How to run rake tasks?

**URL:** https://meta.discourse.org/t/how-to-run-rake-tasks/203314
**Category:** Self-hosting
**Created:** [September 12, 2021, 2:20pm UTC](https://meta.discourse.org/t/how-to-run-rake-tasks/203314 "2021-09-12T14:20:27Z")
**Posts on this page:** 5
**Page:** 1

<div class="post-metadata">

### Author: ![tenzan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tenzan/32/42979_2.png) [@tenzan](https://meta.discourse.org/u/tenzan)
#### Post date: [September 12, 2021, 2:20pm UTC](https://meta.discourse.org/t/how-to-run-rake-tasks/203314/1 "2021-09-12T14:20:27Z")

</div>

I’m currently reading this [article](https://meta.discourse.org/t/setting-up-file-and-image-uploads-to-s3/7229), where I will need to execute:

```plaintext
rake uploads:migrate_to_s3
rake posts:rebake

```

Before that, I will need to enter inside the container.

```plaintext
# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
7a5093d6af50 local_discourse/app "/sbin/boot" 5 hours ago Up 5 hours 0.0.0.0:80->80/tcp, :::80->80/tcp, 0.0.0.0:443->443/tcp, :::443->443/tcp app

```

Could you please show me how to access the container?  
Surely, I can google regarding docker stuff, just wanted to make sure here, in Discourse community.

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [September 12, 2021, 2:30pm UTC](https://meta.discourse.org/t/how-to-run-rake-tasks/203314/3 "2021-09-12T14:30:49Z")

</div>

Easiest way to do that would be:

```plaintext
cd /var/discourse
./launcher enter app

```

Just FYI, S3 migration is currently irreversible.

---

<div class="post-metadata">

### Author: ![tenzan](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/tenzan/32/42979_2.png) [@tenzan](https://meta.discourse.org/u/tenzan)
#### Post date: [September 12, 2021, 3:10pm UTC](https://meta.discourse.org/t/how-to-run-rake-tasks/203314/4 "2021-09-12T15:10:31Z")

</div>

Thanks!

> S3 migration is currently irreversible.

To be specific, I’m going to use Wasabi instead of S3, and I’m not thinking to change to any other sort of storage. Then I’m OK to proceed, right?

---

<div class="post-metadata">

### Author: ![itsbhanusharma](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/itsbhanusharma/32/180717_2.png) [@itsbhanusharma](https://meta.discourse.org/u/itsbhanusharma)
#### Post date: [September 12, 2021, 3:16pm UTC](https://meta.discourse.org/t/how-to-run-rake-tasks/203314/5 "2021-09-12T15:16:17Z")

</div>

I’d say, try it on a sandbox before making such changes to production. Results may be unexpected depending upon how much compatible wasabi is.

---

<div class="post-metadata">

### Author: ![system](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/system/32/443519_2.png) [@system](https://meta.discourse.org/u/system)
#### Post date: [October 12, 2021, 3:16pm UTC](https://meta.discourse.org/t/how-to-run-rake-tasks/203314/6 "2021-10-12T15:16:45Z")

</div>

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.
