我正在尝试将Rails 4应用程序部署到VPS。
我的Capfile、Gemfile、deploy.rb都在this gist中
在cap production deploy
上,它失败了捆绑安装步骤,因为它没有使用gem集,并且一直在说gem没有找到。
cap
的相关输出
INFO[90fcd8c1] Running /tmp/domain_spam_checker/rvm-auto.sh 2.1.2 bundle exec gem install --file Gemfile on 162.221.181.224 DEBUG[90fcd8c1] Command: cd /home/deployer/domain_spam_checker/releases/20140922153958 && /tmp/domain_spam_checker/rvm-auto.sh 2.1.2 bundle exec gem install --file Gemfile DEBUG[90fcd8c1] [31mCould not find i18n-0.6.11 in any of the sources[0m DEBUG[90fcd8c1] [33mRun 'bundle install' to install missing gems.[0m cap aborted!
..。
Tasks: TOP => deploy => rvm1:install:gems
如何在设置文件中提到要使用的gemset?
如何让rvm1/cap3拾取或创建gemset?
发布于 2014-09-23 14:15:35
我从来没有尝试过rvm1/capistrano3
,所以在这方面对你没有帮助,但我建议你改用capistrano/rvm
(link)
Capfile:
require 'capistrano/rvm'
deploy.rb:
set :rvm_ruby_version, '2.0.0-p247@mygemset'
https://stackoverflow.com/questions/25986521
复制相似问题