我使用 beanstalk 在 EC2 上部署了我的 rails 4 应用程序。由于目前没有可用的 ruby 2.0 和 rails 4.0 容器,我只是在实例上安装了 ruby 2.0 和 rails 4.0 跟随这篇文章:在 AWS EC2 上安装 Ruby 2.0 和 Rails 4.0.0beta
但仍然从乘客那里得到错误:
Your Ruby version is 1.9.3, but your Gemfile specified 2.0.0 (Bundler::RubyVersionMismatch)
我 cd 进入 /var/app/current,运行
$ ruby -v
ruby 2.0.0p195 (2013-05-14 revision 40734) [x86_64-linux]
有什么我错过的吗?
谢谢
一些信息更新:
$ which bundle
/usr/local/rvm/gems/ruby-2.0.0-p195/bin/bundle
$ gem env
RubyGems Environment:
- RUBYGEMS VERSION: 2.0.3
- RUBY VERSION: 2.0.0 (2013-05-14 patchlevel 195) [x86_64-linux]
- INSTALLATION DIRECTORY: /usr/local/rvm/gems/ruby-2.0.0-p195
- RUBY EXECUTABLE: /usr/local/rvm/rubies/ruby-2.0.0-p195/bin/ruby
- EXECUTABLE DIRECTORY: /usr/local/rvm/gems/ruby-2.0.0-p195/bin
- RUBYGEMS PLATFORMS:
- ruby
- x86_64-linux
- GEM PATHS:
- /usr/local/rvm/gems/ruby-2.0.0-p195
- /usr/local/rvm/gems/ruby-2.0.0-p195@global
- GEM CONFIGURATION:
- :update_sources => true
- :verbose => true
- :backtrace => false
- :bulk_threshold => 1000
- REMOTE SOURCES:
- https://rubygems.org/