我该如何安装这里的所有插件,就像它们是 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