无法安装任何 Discourse 插件

大家好,

我最近通过 Docker 安装了 Discourse 生产环境,并尝试按照以下指南安装几个插件:Install plugins on a self-hosted site

我在 containers/app.yml 中添加了这些插件:

hooks:
 after_code:
  - exec:
    cd: $home/plugins
    cmd:
     - git clone https://github.com/discourse/docker_manager.git
     - git clone https://github.com/discourse/discourse-brand-header.git
     - git clone https://github.com/pmusaraj/discourse-dark-mode.git

docker_manager 插件在初始安装时已成功加载。然而,我刚刚添加的另外两个插件——discourse-brand-header 和 discourse-dark-mode,在多次重建后仍未显示。构建过程本身没有任何错误。我在 Docker 容器内的“plugins”目录中确实看到了这些插件,但它们既没有出现在 Discourse 管理后台,也没有出现在设置的“插件”部分。我是否遗漏了什么?

1 个赞

你好!
我认为这两个不是插件,而是需要安装在此处的组件:
https://your.domain/admin/customize/themes

7 个赞

各位,我羞愧地低下了头。我花了整整一个上午才明白,我正在安装的其实是一个主题/组件,而不是插件。感谢 @Benjamin_D,你帮我解决了大麻烦!

4 个赞