我有一个盒子,上面有 3 个 Rails 应用程序。我不想升级其中一个应用程序以使其使用 Ruby 2.0.0,而让其他应用程序在 1.9.3-p394 上运行。我通过 Rvm 安装了这两个红宝石。
我试图通过它的 Gemfile 控制每个应用程序使用的 Ruby 版本。
# Gemfile
ruby '2.0.0'
因此,我在本地更改了 Gemfile 中的版本号,确保一切正常并提交,现在我正在尝试将更改部署到服务器。
但是,此时cap deploy
失败
bundle install --gemfile [path to release Gemfile] --path [path to app bundle] --deployment --quiet --without development test
因为
Your Ruby version is 1.9.3, but your Gemfile specified 2.0.0
这在技术上是正确的,我的 Gemfile 确实指定了 2.0.0,并且该应用程序当前在 1.9.3 上运行。我试图让它在捆绑之前改变版本。我怎么做?