ruby-on-rails - 为什么我的部署检查在这里失败

标签 ruby-on-rails ruby-on-rails-3 git amazon-web-services amazon-ec2

我正在尝试将 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/

相关文章:

linux - 如何检查存储中是否存在本地不再存在的未跟踪/忽略文件? (混帐,Linux)

git rm -r some-file => 如果路径不存在,则 git 以 1 退出

android - 为什么带有一些配置文件的 _mac 文件夹会自动从 Android Studio 提交到 git

ruby-on-rails - 具有多个条目的 rails 3 habtm 过滤

java - 具有 Java 中间/后端的 RoR Web 层

ruby-on-rails - #<Array :0x8e052a0>, 的未定义方法 `total_pages' 如何正确分页?

ruby-on-rails - Ruby on rails - Rack 中间件排除 - 可能吗?

ruby-on-rails - 你能为 Ruby on Rails 推荐好的数据网格类/gem 吗?

ruby-on-rails-3 - Rails 3 + 简单表单 + Bootstrap 单选和复选框作为按钮,带切换功能

ruby-on-rails - 如何使用sub uri通过passenger/nginx登录rails 3.2.12