Canapin
(Coin-coin le Canapin)
22 בספטמבר, 2020, 9:11pm
1
Hi,
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:
[quote="zebra"]
Which is cooked to:
<aside class="quote group-Poster" data-username="zebra">
<div class="title">
<div class="quote-controls"></div>
<img alt="" width="20" height="20" src="//localhost:3000/user_avatar/localhost/zebra/40/4042_2.png" class="avatar">
zebra:
</div>
I understand that a rebake would replace the localhost link with my new domain?
Falco
(Falco)
22 בספטמבר, 2020, 9:15pm
2
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?
5 לייקים
Canapin
(Coin-coin le Canapin)
22 בספטמבר, 2020, 9:34pm
3
Ah, I see. That must be imported quotes then.
Thank you!
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.
Falco
(Falco)
23 בספטמבר, 2020, 2:48am
4
It indeed does, but it will do one at time and will be limited by your CPU performance.
3 לייקים
system
(system)
נסגר ב־
23 באוקטובר, 2020, 2:51am
5
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.