2014-02-10 17 views
0

我是一名紅寶石軌道上的新手。我試圖部署到Heroku的,但是當我做試圖卸載不存在於我的gemfile中的gem時發出的問題

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 
+0

請包括你的gemfile。 – gabrielhilal

回答

0

你需要運行bundle install之前部署到Heroku的,並且每次修改Gemfile。不要忘記git commit這些變化。

+0

完成,這就是當我看到你已經添加到Gemfile: * kmts(〜> 2.0.0) 無法通過Bundler安裝寶石。 – malditojavi

+0

您是否需要在部署之前添加並提交Gemfile和Gemfile.lock到提交? –

相關問題