我需要关于安装插件的帮助

所以,我正在尝试安装一个“谁在线”插件,但我不知道该怎么做。

安装插件的说明有点难以理解。Install plugins on a self-hosted site

老实说,我还是没弄明白。

嗯,你将插件 URL 放入 app.yml 中,就像你在帖子中展示的那样:

hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - sudo -E -u discourse git clone https://github.com/discourse/docker_manager.git
          - sudo -E -u discourse git clone https://github.com/discourse/discourse-spoiler-alert.git

这里示例中的插件是 discourse spoiler alert

好的,那我应该把它放在哪里?我真的很困惑。我就是不明白。

这取决于您的托管情况。如果您是自行托管,则可以在服务器上的 app.yml 中安装所有插件(如上面链接的指南所述)。

但如果您使用的是托管服务,那么可用的插件将取决于您的托管套餐,并且通常会预装。:+1: 例如,您可以在 https://discourse.org/plugins 查看我们托管套餐的可用插件。

3 个赞

谢谢,伙计。我将继续尝试一下。

This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.