Capistrano无法在应用程序部署中找到Gemfile错误
我正在尝试将我的Rails应用程序部署到生产服务器,我决定使用本指南 + RVM将其部署到DigitalOcean。
要部署我使用以下命令:
cap production deploy
但是,它在某些需要gemfile的部分失败了。 这是部署失败的日志:
DEBUG[323dfd0e] Command: cd /home/deploy/zwiadowcy/releases/20140628164657 && ~/.rvm/bin/rvm default do bundle install --binstubs /home/deploy/zwiadowcy/shared/bin --path /home/deploy/zwiadowcy/shared/bundle --without development test --deployment --quiet DEBUG[323dfd0e] Could not locate Gemfile cap aborted! SSHKit::Runner::ExecuteError: Exception while executing on host my_ip_address: bundle exit status: 10 bundle stdout: Nothing written bundle stderr: Nothing written
我的gemfile已包含所有必需的东西:
gem 'capistrano', '~> 3.1.0' gem 'capistrano-bundler', '~> 1.1.2' gem 'capistrano-rails', '~> 1.1.1' gem 'capistrano-rvm', github: "capistrano/rvm"
我用谷歌搜索了一半的互联网并尝试了很多东西,在这里查看了很多问题,我现在正处于不知道该怎么做的地步,所以我请求你帮忙。 谢谢!
validation是否在Git中检查了Gemfile
和Gemfile.lock
。 例如,您可以运行:
git log Gemfile git log Gemfile.lock
您还可以validation服务器上的/home/deploy/zwiadowcy/releases/20140628164657
是否存在这些文件。
在服务器中手动运行该命令也有助于:
cd /home/deploy/zwiadowcy/releases/20140628164657 && ~/.rvm/bin/rvm default do bundle install --binstubs /home/deploy/zwiadowcy/shared/bin --path /home/deploy/zwiadowcy/shared/bundle --without development test --deployment
- 自动将文件部署到Amazon S3?
- capistrano回滚是否会撤消迁移?
- Rails 4:为什么字体没有加载到生产中?
- capistrano密码提示
- Rails部署Digitalocean ActiveSupport :: MessageEncryptor :: InvalidMessage:
- Capistrano 3改变任务中的ssh_options
- Capistrano 3 SSHKit :: Runner :: ExecuteError:在host 代理上执行时发生exception无法使用请求的身份对数据进行签名
- capistrano,:db角色,它的用途是什么?
- 使用Capistrano在Heroku上部署?