How to run rake tasks?

I’m currently reading this article, where I will need to execute:

rake uploads:migrate_to_s3
rake posts:rebake

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

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

3 Likes

Easiest way to do that would be:

cd /var/discourse
./launcher enter app

Just FYI, S3 migration is currently irreversible.

3 Likes

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?

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.

1 Like

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