【问题标题】:Spree - Bundle Error when pushing to heroku or elastic beanstalkSpree - 推送到 heroku 或弹性豆茎时出现捆绑错误
【发布时间】:2013-05-31 13:02:17
【问题描述】:

我对这一切有点陌生,所以这可能是我忽略的显而易见的事情,但是当我尝试将我的 spree rails 应用程序推送到 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,所以我不明白为什么它在这里失败。有什么想法我哪里出错了吗?

【问题讨论】:

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


    【解决方案1】:

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

    【讨论】:

    • 甜蜜。这似乎已经为heroku修复了它。我还需要在 gemfile 中的每个 spree gem 上添加 :branch => "2-0-stable"。稍后我会努力让豆茎工作。
    猜你喜欢
    • 2014-02-27
    • 1970-01-01
    • 2019-06-22
    • 2018-03-23
    • 2015-03-20
    • 2012-07-23
    • 2014-12-22
    • 2022-01-10
    • 2016-01-04
    相关资源
    最近更新 更多