“./discourse rebuild app”因主题错误而报错

我已通过执行以下步骤解决了此问题:

  • 编辑 containers/app.yml 以注释掉除 postgres 模板服务之外的所有服务
  • 运行 ./launcher rebuild app 然后 ./launcher enter app
  • 进入后,我通过 su - postgres 然后 psql 进入 postgres 控制台
  • 进入 postgres 后,我执行 \\c discourse 然后 SELECT * FROM themes 并找出 ID 为 11 的有问题的 Alternative Logo 主题。接下来,我使用 DELETE FROM themes WHERE id=11 删除它,然后使用 \\q 退出控制台
  • 通过 exit 退出容器,然后取消注释 containers/app.yaml 中的所有模板并再次执行重建
3 个赞