大家好,
我最近通过 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 管理后台,也没有出现在设置的“插件”部分。我是否遗漏了什么?