Users are seeking a step-by-step guide to migrate old uploads to S3. tehspaceg suggests using the uploads:migrate_to_s3 rake command, but Nelsonius seeks an alternative that only relinks without uploading, as they have already moved their /uploads/ folder to S3.
rsmithlal shares their successful migration experience, outlining the required steps:
Enable S3 Uploads in the admin interface and set the required S3 keys and settings
Add DISCOURSE_S3_ env variables to the app.yml file
Rebuild the app with ./launcher rebuild app
Enter the app with ./launcher enter app
Run rails uploads:migrate_to_s3 from within the docker container
Note that running the command using ./launcher run app rails uploads:migrate_to_s3 may not work, and entering the app is necessary.
I’m in the same boat. But i already moved the /uploads/ folder to it’s new S3. Is there an alternative to uploads:migrate_to_s3 that only relinks but skips actual uploading?
I just switched my instance from local to S3 uploads and I could not for the life of me figure out how to get the S3 migrator to work. In the interest of anyone else who stops by this topic, I will summarize the required steps here.
Enable S3 Uploads in the admin interface and set all of the required S3 keys and settings so new uploads are sent to S3
Add the required DISCOURSE_S3_ env variables to the env section of app.yml
Example: