从托管到自托管的迁移:过去的上传仍然引用 discourse 基础设施

谢谢你,Richard!

为了澄清,通过:Replace a string in all posts

使用

rake posts:remap["find","replace","string",true]

执行

rake posts:remap[
  "https://cdck-file-uploads-europe1.s3.dualstack.eu-west-1.amazonaws.com/standard21/uploads/everviz/",
  "/uploads/default/"
]

相对路径的替代替换器是 “https://forum.everviz.com/uploads/default/”

您想到的是相对链接吗?

e:使用 / 修正相对 URL

单行命令:

rake posts:remap["https://cdck-file-uploads-europe1.s3.dualstack.eu-west-1.amazonaws.com/standard21/uploads/everviz/", "/uploads/default/"]