微信公众号搜"智元新知"关注
微信扫一扫可直接关注哦!

ruby-on-rails – 推送到Heroku失败:无法在任何来源中找到net-ssh-2.10.0.无法通过Bundler安装gem

我尝试将我的应用程序推送到heroku但是出现以下错误
remote: -----> Using Ruby version: ruby-2.2.2
remote: -----> Installing dependencies using 1.9.7
remote:        Running: bundle install --without development:test --path vendor/bundle --binstubs vendor/bundle/bin -j4 --deployment
remote:        Fetching gem Metadata from https://rubygems.org/...........
remote:        Fetching version Metadata from https://rubygems.org/...
remote:        Fetching dependency Metadata from https://rubygems.org/..
remote:        Could not find net-ssh-2.10.0 in any of the sources
remote:        Bundler Output: Fetching gem Metadata from https://rubygems.org/...........
remote:        Fetching version Metadata from https://rubygems.org/...
remote:        Fetching dependency Metadata from https://rubygems.org/..
remote:        Could not find net-ssh-2.10.0 in any of the sources
remote:  !     Failed to install gems via Bundler.
remote:  !     Push rejected,Failed to compile Ruby app

我该怎么办?

我已经删除了Gemfile.lock以查看重建此文件是否有所作为,但事实并非如此.另外,我已经尝试过gem uninstall net-ssh-2.10.0然后在推送到heroku之前捆绑安装.另外,我从我的Gemfile中删除了雾,因为那是net-ssh-2.10.0出现的宝石;然后做了捆绑更新,宝石清理,把雾放回Gemfile,运行捆绑安装,推送到git,再次推送到heroku同样的结果.

我的Gemfile:

source 'https://rubygems.org'

ruby                  '2.2.2'
gem 'rails','4.2.3'
gem 'bcrypt','3.1.10'
gem 'faker','1.4.3'
gem 'carrierwave','0.10.0'
gem 'mini_magick','4.2.9'
gem 'fog','1.32.0'
gem 'aws-sdk','2.1.11'
gem 'sass-rails','5.0.3'
gem 'bootstrap-sass','3.3.5.1'
gem 'uglifier','2.7.1'
gem 'coffee-rails','4.1.0'
gem 'wice_grid','3.5.0'
gem 'bootstrap-datepicker-rails','1.4.0'
gem 'friendly_id','5.1.0'
gem 'jquery-rails','4.0.4'
gem 'turbolinks','2.5.3'
gem 'jbuilder','2.3.1'
gem 'sdoc','0.4.1',group: :doc
gem 'pg','0.18.2'

group :production do
  gem 'rails_12factor','0.0.3'
  gem 'puma','2.11.2'
end

解决方法

似乎这个 version刚从Rubygems中删除了……
我们可以做降级或升级……

删除的原因是here.

原文地址:https://www.jb51.cc/ruby/269003.html

版权声明:本文内容由互联网用户自发贡献,该文观点与技术仅代表作者本人。本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌侵权/违法违规的内容, 请发送邮件至 dio@foxmail.com 举报,一经查实,本站将立刻删除。

相关推荐