I’d like some clarification about the rebake task because I’m not sure I 100% get it.
I’ve changed the domain of my forum and I’m rebaking all posts with
rake post:rebake, since I read that it’s recommended in this case.
Is it supposed to start with the most recent messages?
Is it supposed to fix URLS mapped to the old domain?
Example: a raw text from one of my post begins by:
Which is cooked to:
<aside class="quote group-Poster" data-username="zebra">
<img alt="" width="20" height="20" src="//localhost:3000/user_avatar/localhost/zebra/40/4042_2.png" class="avatar">
I understand that a rebake would replace the localhost link with my new domain?
Discourse quotes are not like that, but like:
[quote="Canapin, post:1, topic:164992"]
Yes, it will. But a
remap would be way, way faster. Like show in
Change the domain name or rename my Discourse?
Ah, I see. That must be imported quotes then.
I need to rebake anyway since posts aren’t properly cooked (because of the import I believe). For example, links on a single line won’t show a preview/media until I rebuild the HTML in the post admin actions. Then only, it is properly cooked.
As for my first question “Is it supposed to start with the most recent messages?”, I thought I read somewhere that it started by the most recent ones, but I’m already at 70000 rebaked posts and very recent ones doesn’t seem to be rebaked yet.
It indeed does, but it will do one at time and will be limited by your CPU performance.
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.