Capistrano部署报错SSHKit::Runner::ExecuteError: Exception while executing

解决方法:

在服务器端安装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目录,重新自动生成

 

posted on 2017-10-13 14:43  风小可  阅读(507)  评论(0编辑  收藏  举报