我尝试运行git push heroku
并显示以下错误
In Gemfile:
rails (= 3.2.3) depends on
railties (= 3.2.3)
jquery-rails (= 2.0.0) depends on
railties (3.2.5)
这是我的Gemfile:
source 'https://rubygems.org'
gem 'rails', '3.2.3'
gem 'jquery-rails', '2.0.0'
gem 'bootstrap-sass', '2.0.0'
gem 'bcrypt-ruby', '3.0.1'
gem 'faker', '1.0.1'
gem 'will_paginate', '3.0.3'
gem 'bootstrap-will_paginate', '0.0.5'
group :development, :test do
gem 'sqlite3', '1.3.5'
gem 'rspec-rails', '2.9.0'
gem 'guard-rspec', '0.5.5'
end
# Gems used only for assets and not required
# in production environments by default.
group :assets do
gem 'sass-rails', '3.2.4'
gem 'coffee-rails', '3.2.2'
gem 'uglifier', '1.2.3'
end
group :test do
gem 'capybara', '1.1.2'
gem 'factory_girl_rails', '1.4.0'
gem 'cucumber-rails', '1.2.1', require: false
gem 'database_cleaner', '0.7.0'
gem 'rb-fsevent', '0.4.3.1', :require => false
gem 'growl', '1.0.3'
gem 'guard-spork', '0.3.2'
gem 'spork', '0.9.0'
gem 'launchy', '2.1.0'
end
group :production do
gem 'pg', '0.12.2'
end
我将rails版本更改为3.2.5捆绑更新和捆绑安装。仍然遇到同样的问题因此我将rails版本改回3.2.3。
答案 0 :(得分:-1)
检查Gemfile.lock并搜索哪个gem需要栏杆3.2.5。
还尝试删除Gemfile.lock并再次运行'bundle install'
答案 1 :(得分:-1)
前几天我遇到了与此相关的问题 我做的是
Bundle install
除非有必要,否则我通常不会在Gemfile中使用版本。