从单一位置管理多个 Discourse 实例

大家好,
如果您管理多个 Discourse 论坛(我正在负责两个),您经常会发现自己在做重复性工作:升级核心/插件、各种设置和样式等。如果我再多管理一个论坛,我可能会崩溃!:slight_smile:

有没有一种方法可以在不联系所有论坛管理员的情况下完成这些操作?

谢谢!

2 个赞

You can script rebuild at the command line. I’ve written a Discourse settings uploader that will install settings to multiple sites. I don’t know if an automated way to upload themes, though if the sites use the same themes you can host them at github.

8 个赞

@pfaffman 你的 discourse-settings-uploader 仍然是将站点设置从一个独立的 discourse 实例复制到另一个实例的唯一(或最佳)方法吗?

如果是这样,对于存储库中提供的示例……

./discourse-settings-uploader https://discourse.example.com d35989078a system site_settings.json

我将 site_settings.json 保存到了我的 PC 下载文件夹。我是否应该将其保存到远程服务器,如果是,保存在哪里?

然后我尝试像这样运行该命令……(并在控制台中收到显示的错误)……

你能提供更多说明吗?

3 个赞

我认为 Administrative Bulk Operations 是可行的方法。

2 个赞

好的,太感谢了。有没有一个文件可以存储主题组件列表,我可以像在 app.yml 中复制插件一样,将它们从一个实例复制到另一个实例?

2 个赞