veer
(Veer)
24 Aprile 2017, 6:15am
1
I updated and inserted some photos in my discourse forum, now i need to regenerate the posts.cooked row from the posts.raw. How can i tweak discourse to regenerate this data ?
To regenerate cooked HTML for a single post you can use Rebuild HTML button on posts menu.
To rebake all old posts in forum
cd /var/discourse
./launcher enter app
rake posts:rebake
This guide provides instructions on how to rebake all posts in Discourse that match a specific string or regular expression, utilizing the Rails console for additional advanced options.
Required user level: Administrator
Console access required
Want to rebake all the posts matching a string or regular expression? Let’s get started!
Accessing your site
To begin, connect to your Discourse Droplet via SSH and enter the Docker container for your Disc…