Bundler在使用Capistrano进行部署时需要不同的ruby版本

时间:2016-02-06 09:14:02

标签: ruby-on-rails capistrano bundler

我在.ruby_version文件

中定义了ruby版本2.0.0-p645

cap production deploy因捆绑错误而停止:

INFO [11dd01a8] Running /usr/local/rvm/bin/rvm default do bundle install --path /var/www/p4-site/shared/bundle --without development test --deployment --quiet on p4-ocean
DEBUG [11dd01a8] Command: cd /var/www/p4-site/releases/20160206090913 && /usr/local/rvm/bin/rvm default do bundle install --path /var/www/p4-site/shared/bundle --without development test --deployment --quiet
DEBUG [11dd01a8]        ruby-2.0.0-p481 is not installed.
DEBUG [11dd01a8]        To install do: 'rvm install ruby-2.0.0-p481'
DEBUG [11dd01a8]        /usr/local/rvm/scripts/set: line 19: exec: bundle: not found
(Backtrace restricted to imported tasks)

Gemfile不包含ruby命令

.bundle/config文件包含

---
BUNDLE_WITHOUT: production

bundler在哪里存储ruby版本2.0.0-p481?

0 个答案:

没有答案