狂欢 - 推送到heroku或弹性beanstalk时出现错误

时间:2013-06-05 00:21:01

标签: ruby-on-rails heroku spree elastic-beanstalk

我对这一切有点新意,所以这可能是我忽略的一些显而易见的东西,但是当我尝试将我的狂欢应用程序推送到heroku或beanstalk时,我得到了涉及bundle的不同错误。

Heroku的这个:

Installing spree_core (2.0.0)
Gem::InstallError: spree_core requires Ruby version >= 1.9.3.
An error occurred while installing spree_core (2.0.0), and Bundler cannot

continue.
Make sure that `gem install spree_core -v '2.0.0'` succeeds before bundling.
!
!     Failed to install gems via Bundler.
!

!     Push rejected, failed to compile Ruby/Rails app

和Elastic Beanstalk的这个:

https://github.com/spree/spree_gateway.git (at 2-0-stable) is not checked out.
Please run `bundle install` (Bundler::GitError)

我的gemfile就在这里。 https://github.com/pjsim/spree_exporting_sardinia/blob/master/Gemfile

该应用程序捆绑并在本地服务器上运行正常,我的ruby版本是1.9.3p392所以我不明白为什么它在这里失败。我出错的任何想法?

1 个答案:

答案 0 :(得分:2)

Heroku上的默认红宝石仍然是1.9.2。尝试将ruby '1.9.3'添加到您的Gemfile以解决该问题。