我正在尝试将capistrano从v2升级到v3。我的部署失败了
我的git路径是
$ git
的/ usr /斌/ GIT中
$ / usr / bin / env git --version
git版本1.8.5.2
$ cap development deploy:check
INFO [bc6a1c31] Running /usr/bin/env mkdir -p /tmp/my_app_name/ on 40.17.329.77
DEBUG [bc6a1c31] Command: ( RVM_BIN_PATH=~/.rvm/bin /usr/bin/env mkdir -p /tmp/my_app_name/ )
INFO [bc6a1c31] Finished in 4.281 seconds with exit status 0 (successful).
DEBUG Uploading /tmp/my_app_name/git-ssh.sh 0.0%
INFO Uploading /tmp/my_app_name/git-ssh.sh 100.0%
INFO [63f3b4b8] Running /usr/bin/env chmod +x /tmp/my_app_name/git-ssh.sh on 40.17.329.77
DEBUG [63f3b4b8] Command: ( RVM_BIN_PATH=~/.rvm/bin /usr/bin/env chmod +x /tmp/my_app_name/git-ssh.sh )
INFO [63f3b4b8] Finished in 0.627 seconds with exit status 0 (successful).
DEBUG [f2bd4b22] Running /usr/bin/env git ls-remote git@github.com:example/webapp.giton 40.17.329.77
DEBUG [f2bd4b22] Command: ( RVM_BIN_PATH=~/.rvm/bin GIT_ASKPASS=/bin/echo GIT_SSH=/tmp/my_app_name/git-ssh.sh /usr/bin/env git ls-remote git@github.com:example/webapp.git)
DEBUG [f2bd4b22] /usr/bin/env:
DEBUG [f2bd4b22] git
DEBUG [f2bd4b22] : No such file or directory
DEBUG [f2bd4b22]
DEBUG [f2bd4b22] Finished in 0.627 seconds with exit status 127 (failed).
答案 0 :(得分:5)
Git不在远程机器中:
如果运行Ubuntu / Debian:
sudo apt-get install git
如果运行CentOS / RedHat(以root身份运行):
yum install git