我正在尝试将我的Rails应用程序部署到生产服务器,我决定使用本指南 + RVM 将其部署到DigitalOcean .
要部署我使用以下命令:
cap production deploy
Run Code Online (Sandbox Code Playgroud)
但是,它在某些需要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
Run Code Online (Sandbox Code Playgroud)
我的gemfile已包含所有必需的东西:
gem 'capistrano', '~> 3.1.0'
gem 'capistrano-bundler', '~> 1.1.2'
gem 'capistrano-rails', '~> 1.1.1'
gem 'capistrano-rvm', github: "capistrano/rvm"
Run Code Online (Sandbox Code Playgroud)
我用Google搜索了一半的互联网并试了很多东西,在这里查看了很多问题,我现在已经到了我不知道该怎么办的地步,所以我请求你帮忙.谢谢!