Heroku:尽管运行gem install bundler,但无法通过Bundler安装gem

时间:2018-10-14 22:52:10

标签: ruby-on-rails heroku bundler

当我将git推送到heroku时,我从Heroku收到以下错误:

Failed to install gems via Bundler

我尝试通过运行以下命令来解决此问题:

Gem install bundler
Gem install bundle update

但是什么都没有改变。我仍然收到错误消息。查看日志时,我可能获得以下信息:

Warning: the running version of Bundler (1.15.2) is older than the version that created the lockfile (1.16.5). We suggest you upgrade to the latest version of Bundler by running `gem install bundler`.

remote:        inherited_resources-1.9.0 requires ruby version >= 2.3, which is incompatible
remote:        with the current version, ruby 2.2.6p396

捆绑器版本是1.16.6,ruby版本是2.5.1p57,rails版本是4.2.8。关于如何解决这个问题,您有什么建议吗?

编辑 这是宝石文件

source 'https://rubygems.org'


# Bundle edge Rails instead: gem 'rails', github: 'rails/rails'
gem 'rails', '4.2.8'
gem 'bcrypt', '3.1.7'
gem 'bootstrap-sass', '3.2.0.0'
gem "will_paginate", "~> 3.0.4"
gem 'faker', '1.4.2'
gem 'bootstrap-will_paginate', '0.0.10'
gem 'rufus-scheduler'
gem 'devise'
gem 'activeadmin', '~> 1.0.0.pre1'
gem 'wicked_pdf'
gem 'pdf-reader'
gem 'pry'
gem 'pry-remote'
gem 'pry-rails'
gem 'figaro'
gem 'gon'
gem 'jquery-ui-rails'


# Carrier Wave to upload file
gem 'carrierwave'
gem 'fog'
gem 'mime-types'
gem 'net-ssh'
gem 'aws-sdk'
gem 'open-uri-s3'
gem 'pg', '0.18.3'
gem 'rb-readline'
gem 'sass-rails', '~> 5.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.1.0'
gem 'jquery-rails'
gem 'jbuilder', '~> 2.0'
gem 'sdoc', '~> 0.4.0', group: :doc
gem 'mail_form'
gem 'simple_form'

# Useful for session storege
gem 'activerecord-session_store', github: 'rails/activerecord-session_store'



group :development, :test do

  gem 'rspec'
  gem 'rspec-rails'
  gem 'factory_girl_rails'
  gem 'capybara'
  gem 'mocha'
end

group :production do
gem 'rails_12factor','0.0.2'
gem 'puma','2.11.1'
end

0 个答案:

没有答案