Ruby`bundall`不能在OpenShift上运行

时间:2015-12-22 12:02:19

标签: ruby openshift bundler

我正在使用Ruby脚本,它不是Web或Rails应用程序。它在本地与Capybara和PhantomJS一起运作良好,但在推送到Openshift的Ruby 2.0应用程序之后,我不知道如何运行它。

我ssh到app-root / repo并尝试bundle install --without development,但它输出:

Gem::InstallError: mime-types requires Ruby version >= 1.9.2.
An error occurred while installing mime-types (2.99), and Bundler cannot continue.
Make sure that `gem install mime-types -v '2.99'` succeeds before bundling.

Gemfile是:

source "https://rubygems.org"

gem "capybara"
gem "poltergeist"
gem "mailgun"

group :development do
  gem "selenium-webdriver"
  gem "chromedriver-helper"
  gem "launchy"
end

Gemfile.lock是在本地生成并推送的。本地Ruby是RVM 2.0,在Ubuntu 14.04 LTS上。

这很可能是简单的事情,但我从未使用过Openshift。有没有人有任何想法?

  • ruby -vruby 2.0.0p645 (2015-04-13) [x86_64-linux]
  • which ruby/opt/rh/ruby200/root/usr/bin/ruby
  • which bundler/usr/bin/bundler

0 个答案:

没有答案