解决方法:
在服务器端安装git,cap部署后会自动在目录下创建几个文件夹:
报错内容:
$ cap product deploy
(Backtrace restricted to imported tasks)
cap aborted!
SSHKit::Runner::ExecuteError: Exception while executing as remote_host: git exit status: 127
git stdout: /usr/bin/env: git: No such file or directory
git stderr: Nothing written
SSHKit::Command::Failed: git exit status: 127
git stdout: /usr/bin/env: git: No such file or directory
git stderr: Nothing written
Tasks: TOP => git:check
(See full trace by running task with --trace)
The deploy has failed with an error: Exception while executing as remote_host: git exit status: 127
git stdout: /usr/bin/env: git: No such file or directory
git stderr: Nothing written
修改部署参数之后需移除repo目录,重新自动生成