You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Updating the URLs in the database...
REPLACING '/uploads/default/original/(\dX/(?:[a-f0-9]/)[a-f0-9]{40}[a-z0-9.])' WITH //rishabhmultisite3.s3.dualstack.us-east-1.amazonaws.com/original/\1
REMAPPING http://localhost//rishabhmultisite3.s3.dualstack.us-east-1.amazonaws.com TO https://discourse-cdn-aws1.com/pocketgems
Done!
[/details]
Updating the URLs in the database...
REPLACING 1/uploads/default/original/(\dX/(?:[a-f0-9]/)[a-f0-9]{40}[a-z0-9.]) WITH //rishabhmultisite3.s3.dualstack.us-east-1.amazonaws.com/cloud/original/\1
REMAPPING http://localhost//rishabhmultisite3.s3.dualstack.us-east-1.amazonaws.com/cloud TO https://discourse-cdn-aws1.com/pocketgems
Done!
The reason will be displayed to describe this comment to others. Learn more.
I did so by manually setting prefix to use "#{db}/original/" on my test install.
[details=without folder path using a multisite prefix]
uploads/default/original/1X/b92f9ef1eb09102e8c48fb0c1d872c82c9fcbdff.png => default/original/1X/b92f9ef1eb09102e8c48fb0c1d872c82c9fcbdff.png
uploads/default/original/1X/21e6700c21f70f299af6c4e74048c9e9ccf32983.png => default/original/1X/21e6700c21f70f299af6c4e74048c9e9ccf32983.png
Updating the URLs in the database...
REPLACING '/uploads/default/original/(\dX/(?:[a-f0-9]/)*[a-f0-9]{40}[a-z0-9\.]*)' WITH '//rishabhmultisite10.s3.dualstack.us-east-1.amazonaws.com/default/original/\1'
REMAPPING 'http://localhost//rishabhmultisite10.s3.dualstack.us-east-1.amazonaws.com' TO 'https://discourse-cdn-aws1.com/pocketgems'
[/details]
[details=with folder path using a multisite prefix]
uploads/default/original/1X/b92f9ef1eb09102e8c48fb0c1d872c82c9fcbdff.png => cloud-file-uploads/default/original/1X/b92f9ef1eb09102e8c48fb0c1d872c82c9fcbdff.png
uploads/default/original/1X/21e6700c21f70f299af6c4e74048c9e9ccf32983.png => cloud-file-uploads/default/original/1X/21e6700c21f70f299af6c4e74048c9e9ccf32983.png
Updating the URLs in the database...
REPLACING '/uploads/default/original/(\dX/(?:[a-f0-9]/)*[a-f0-9]{40}[a-z0-9\.]*)' WITH '//rishabhmultisite10.s3.dualstack.us-east-1.amazonaws.com/cloud-file-uploads/default/original/\1'
REMAPPING 'http://localhost//rishabhmultisite10.s3.dualstack.us-east-1.amazonaws.com/cloud-file-uploads' TO 'https://discourse-cdn-aws1.com/pocketgems'
ff8f9dc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The listing issue is fixed for both kinds of bucket paths ⬇️
@ZogStriP could I have a sanity check on this output? Especially the remap and replace destinations?
[details=without folder path]
DRY_RUN=1
DISCOURSE_S3_REGION="us-east-1"
DISCOURSE_S3_BUCKET="rishabhmultisite3"
DISCOURSE_S3_CDN_URL="https://discourse-cdn-aws1.com/pocketgems"
rake uploads:migrate_to_s3
****************************** DRY RUN ******************************
Migrating uploads to S3 for 'default'...
Uploading files to S3...
uploads/default/original/1X/7dc054e635cfb985d8d790584fd14996fed12eae.jpeg => original/1X/7dc054e635cfb985d8d790584fd14996fed12eae.jpeg
.....
.....
uploads/default/original/1X/29e24a112e295db84e91826862da2fccb96d0df3.png => original/1X/29e24a112e295db84e91826862da2fccb96d0df3.png
Updating the URLs in the database...
REPLACING '/uploads/default/original/(\dX/(?:[a-f0-9]/)[a-f0-9]{40}[a-z0-9.])' WITH
//rishabhmultisite3.s3.dualstack.us-east-1.amazonaws.com/original/\1
REMAPPING
http://localhost//rishabhmultisite3.s3.dualstack.us-east-1.amazonaws.com
TOhttps://discourse-cdn-aws1.com/pocketgems
Done!
[/details]
[details=with folder path]
DISCOURSE_S3_REGION="us-east-1"
DISCOURSE_S3_BUCKET="rishabhmultisite3/cloud"
DISCOURSE_S3_CDN_URL="https://discourse-cdn-aws1.com/pocketgems"
rake uploads:migrate_to_s3
****************************** DRY RUN ******************************
Migrating uploads to S3 for 'default'...
Uploading files to S3...
uploads/default/original/1X/7dc054e635cfb985d8d790584fd14996fed12eae.jpeg => cloud/original/1X/7dc054e635cfb985d8d790584fd14996fed12eae.jpeg
.......
uploads/default/original/1X/21e6700c21f70f299af6c4e74048c9e9ccf32983.png => cloud/original/1X/21e6700c21f70f299af6c4e74048c9e9ccf32983.png
Updating the URLs in the database...
REPLACING 1/uploads/default/original/(\dX/(?:[a-f0-9]/)[a-f0-9]{40}[a-z0-9.]) WITH
//rishabhmultisite3.s3.dualstack.us-east-1.amazonaws.com/cloud/original/\1
REMAPPING
http://localhost//rishabhmultisite3.s3.dualstack.us-east-1.amazonaws.com/cloud
TOhttps://discourse-cdn-aws1.com/pocketgems
Done!
[/details]
ff8f9dc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Looks good from a cursory look. Have you tested multisite?
ff8f9dc
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I did so by manually setting prefix to use
"#{db}/original/"
on my test install.[details=without folder path using a multisite prefix]
[/details]
[details=with folder path using a multisite prefix]
[/details]