Heroku推拒绝,railties依赖冲突? Ruby on Rails教程部分1.4.2 [英] Heroku push rejected, railties dependency conflict? Ruby on Rails Tutorial Section 1.4.2
问题描述
从 https://rubygems.org/ .........
Bundler找不到兼容版本的宝石railties:
在Gemfile中:
rails(= 3.2.1)ruby依赖于
railties(= 3.2.1)ruby
sass-rails(= 3.2.3)ruby依赖于
railties(3.2.2.rc1)
它继续告诉我,它没有安装宝石,被拒绝。
我的Gemfile目前正如教程中指定的那样,但是我尝试了弄明确的版本号来看看我是否可以这样解决错误:没有运气。我也尝试过更新捆绑包,这给了我一个类似的错误,但直接从Bundler中取出,而不是从Heroku推送;并删除Gemfile.lock文件,导致其他错误,如此混乱我最终删除了一切,并重新开始。
看来对我而言,您的集团资产发生了变化。使用它:
group:assets do
gem'sass-rails','〜> 3.2.3'
gem'咖啡栏','〜> 3.2.1'
#请参阅https://github.com/sstephenson/execjs#readme了解更多支持的运行时间
gem'therubyracer'
gem'uglifier ','> = 1.0.3'
gem'compass-rails'
end
Trying to push first_app to heroku. Starts out looking like it's working OK, but after a few seconds, I get:
Fetching gem metadata from https://rubygems.org/......... Bundler could not find compatible versions for gem "railties": In Gemfile: rails (= 3.2.1) ruby depends on railties (= 3.2.1) ruby sass-rails (= 3.2.3) ruby depends on railties (3.2.2.rc1)
It goes on to tell me that it failed to install gems and the push was rejected.
My Gemfile is currently as specified in the tutorial, but I have tried fiddling with the explicit version numbers to see whether I could resolve the error that way: no luck. I also tried doing a bundle update, which gave me a similar error, but straight out of Bundler, instead of from the Heroku push; and deleting the Gemfile.lock file, which caused other errors so confusing I wound up deleting everything and starting over.
It seems to me you have changes in group assets. Use it:
group :assets do
gem 'sass-rails', '~> 3.2.3'
gem 'coffee-rails', '~> 3.2.1'
# See https://github.com/sstephenson/execjs#readme for more supported runtimes
gem 'therubyracer'
gem 'uglifier', '>= 1.0.3'
gem 'compass-rails'
end
这篇关于Heroku推拒绝,railties依赖冲突? Ruby on Rails教程部分1.4.2的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!