我正在尝试将 capistrano 从 v2 升级到 v3。我的部署失败了
我的git路径是
$ git
/usr/bin/git
$/usr/bin/env git --version
git版本1.8.5.2
美元上限开发部署:检查
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 <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="87e0eef3c7e0eef3eff2e5a9e4e8ea" rel="noreferrer noopener nofollow">[email protected]</a>: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 <a href="https://stackoverflow.com/cdn-cgi/l/email-protection" class="__cf_email__" data-cfemail="dabdb3ae9abdb3aeb2afb8f4b9b5b7" rel="noreferrer noopener nofollow">[email protected]</a>: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).
最佳答案
Git 不在远程计算机中:
如果运行 Ubuntu/Debian:
sudo apt-get install git
如果运行 CentOS/RedHat(以 root 身份运行):
yum install git
关于ruby-on-rails - 为什么我的部署检查在这里失败,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/21045371/