Ruby on rails 尝试卸载gem文件中不存在的gem时出现问题
我是RubyonRails的新手。我正试图部署到heroku,但当我部署到heroku时Ruby on rails 尝试卸载gem文件中不存在的gem时出现问题,ruby-on-rails,gem,Ruby On Rails,Gem,我是RubyonRails的新手。我正试图部署到heroku,但当我部署到heroku时 git push heroku master 我遇到了它所说的一个问题 You have added to the Gemfile: * kmts (~> 2.0.0) Failed to install gems via Bundler. 但是我在gemfile和gemfile.lock中都没有看到宝石。我已尝试使用卸载它 gem uninstall kmts 但什么也没发生 source
git push heroku master
我遇到了它所说的一个问题
You have added to the Gemfile:
* kmts (~> 2.0.0)
Failed to install gems via Bundler.
但是我在gemfile和gemfile.lock中都没有看到宝石。我已尝试使用卸载它
gem uninstall kmts
但什么也没发生
source 'https://rubygems.org'
gem 'rails', '4.0.0'
gem 'sass-rails', '~> 4.0.0'
gem 'uglifier', '>= 1.3.0'
gem 'coffee-rails', '~> 4.0.0'
gem 'jquery-rails'
gem 'turbolinks'
gem 'jbuilder', '~> 1.2'
gem 'bootstrap-sass'
gem 'devise', '~> 3.1.0.rc2'
gem 'intercom-rails', '~> 0.2.21'
group :development, :test do
gem 'sqlite3'
end
group :production do
gem 'pg'
gem 'rails_12factor'
end
group :doc do
# bundle exec rake doc:rails generates the API under doc/api.
gem 'sdoc', require: false
end
您需要在部署到heroku之前运行bundle安装,并且每次修改文件时都需要运行bundle安装。别忘了git提交这些更改。请包括您的gemfile.done,这时我看到您已添加到gemfile:*kmts~>2.0.0未能通过Bundler安装gems。您是否在部署前将gemfile和gemfile.lock添加并提交到提交中?