我正在尝试将Rails 4应用程序部署到VPS。
我的Capfile,Gemfile,deploy.rb位于this gist
在cap production deploy
上,它的捆绑安装步骤失败,因为它不使用gemset,并且一直说宝石没有找到。
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?
答案 0 :(得分:1)
我从未尝试rvm1/capistrano3
因此无法帮助您,但我建议您使用capistrano/rvm
代替(link)
Capfile:
require 'capistrano/rvm'
deploy.rb:
set :rvm_ruby_version, '2.0.0-p247@mygemset'