The discussion revolves around issues with migrating a Discourse site, particularly concerning images and CDN configuration. eextra is troubleshooting image restoration after moving the site, noting that despite running commands like rake posts:rebake and rake uploads:regenerate_missing_optimized, images are not appearing. They tried using S3 for uploads but encountered errors during migration. pfaffman clarifies that images must be manually copied or restored from a full backup if they are not being served by the new server. The conversation also touches on the need to rebake posts after changing CDN settings, with eextra confirming they initially used an old CDN and later removed it, attempting to restore images by copying files directly.
I’ve already read the threads that there’s often a problem with moving.
I’m just testing it, actually. And now I don’t know if maybe I’m doing something in a bad order?
the rake rebake post command returns 0 - so all posts are ok.
And now there’s a question. Maybe backup should be done after disconnecting from cdn? i.e. rebulld forum so that it does not use cdn and only then do the backup and move to another server?
I moved the page . And there are no pictures. I added “old” cdn. There were some pictures but only for a while (cache ? ) but later those pictures disappeared.
I added a new adress cdn2.domain . But it didn’t help.
So i deleted cdn. And now I’m checking by hand copying files with original images to the current folder.
I copied all the files, then I tried the command like this:
but it didn’t help, the pictures still don’t want to be restored.
That’s why I tried 3 more ways. So I set S3 and so I copied all images (original and optimized folder) (copy-paste) into bucket . But there is a problem because the rake migrate Migrating uploads to S3 for 'default'... rake aborted! command returns an error. eh…