您好!
我正在尝试安装插件,但当我重新构建应用程序时,它们似乎根本没有被识别。
应用程序可以正常编译,但没有任何插件。
我在自己的服务器上安装了默认的 discourse。
最明显需要检查的地方有哪些?
谢谢。
您好!
我正在尝试安装插件,但当我重新构建应用程序时,它们似乎根本没有被识别。
应用程序可以正常编译,但没有任何插件。
我在自己的服务器上安装了默认的 discourse。
最明显需要检查的地方有哪些?
谢谢。
插件是否显示在
/admin/plugins
您还需要告知您尝试安装哪些插件。
并可能在 app.yml 中显示插件。
管理员中未显示。
这是 app.yml:
## Docker 容器是无状态的;所有数据都存储在 /shared 中
volumes:
- volume:
host: /var/discourse/shared/standalone
guest: /shared
- volume:
host: /var/discourse/shared/standalone/log/var-log
guest: /var/log
## 插件放在这里
## 详情请参阅 https://meta.discourse.org/t/19157
hooks:
after_code:
- exec:
cd: $home/plugins
cmd:
- git clone https://github.com/discourse/docker_manager.git
- git clone https://github.com/discourse/discourse-spoiler-alert.git
- git clone https://github.com/discourse/discourse-animated-avatars.git
- git clone https://github.com/discourse/discourse-whos-online.git
- git clone https://github.com/discourse/discourse-data-explorer.git
- git clone https://github.com/discourse/discourse-bbcode.git
- git clone https://github.com/discourse/discourse-signatures.git
- git clone https://github.com/discourse/discourse-reactions.git
- git clone https://github.com/paviliondev/discourse-legal-tools.git
- git clone https://github.com/theCrius/discourse-ngi-emojis.git
## 构建后要运行的任何自定义命令
run:
- exec: echo "Beginning of custom commands"
## 如果您想设置第一次注册的“发件人”电子邮件地址,请取消注释并更改:
## 获取第一个注册电子邮件后,请重新注释该行。它只需要运行一次。
#- exec: rails r "SiteSetting.notification_email='info@unconfigured.discourse.org'"
- exec: echo "End of custom commands"
这是一个格式错误的 app.yml
首先,hooks 前面不应该有任何空格!(它不是 volumes 的子节)
问题似乎从上面的注释行开始。
好的,我不知道它对制表符这么敏感。谢谢!
This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.