安装所有插件

我该如何安装这里的所有插件,就像它们是 app.yml 的一部分一样?
https://github.com/discourse/all-the-plugins
我尝试将提供的命令插入到我的 yml 中,如下所示:

hooks:
  after_code:
    - exec:
        cd: $home/plugins
        cmd:
          - sudo -E -u discourse git clone https://github.com/discourse/docker_manager.git
          - git clone https://github.com/discourse/all-the-plugins.git
        cd: ./all-the-plugins
        cmd:
          - git submodule update --init --recursive

但这最终导致我遇到了一个错误:

Pups::ExecError: cd ./all-the-plugins && git submodule update --init --recursive 失败,返回 #<Process::Status: pid 292 exit 2>
失败位置:/pups/lib/pups/exec_command.rb:112:in `spawn'
执行失败,参数为 {"cd"=>"./all-the-plugins", "cmd"=>["git submodule update --init --recursive"]}
f4e262dc445e2f04b6061be127f4e874dbf5aaa30e889367527113e88f33ea62

你千万别这么做。这绝对是个非常糟糕的主意,根本行不通。

只安装你有明确需求的插件,或者仅安装官方支持的插件。

4 个赞

有什么原因说明这样做是个坏主意吗?为什么不能安装所有这些插件?
我也可以简单地将每个插件放在一行 - sudo -E -u discourse git clone 命令中,用这种方式来安装。
如果理论上我真的想要安装所有插件,有没有更高效的方法?

安装这么多插件会引入大量风险。您可能会遇到性能问题、兼容性问题、安全问题,其中一些插件的功能还可能存在冗余……在安装插件时,您应该对其功能及维护者有一个基本的了解。

例如,我们不允许在官方托管服务中使用第三方插件,除非经过严格的代码审查……因为我们需要对服务器的安全性和性能进行严格管控。

4 个赞

因为许多这些插件已经失效或已被弃用。

3 个赞

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