本文介绍了发布到Heroku的推送被拒绝,无效的RUBY_VERSION的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
指定了无效的RUBY_VERSION:不幸的是,-a-fatal发生错误 - 请
-see-the-Bundler-troubleshooting-documentation-at-http://bit.ly/bundler-
问题 - 谢谢!
!有效版本:ruby-2.0.0,ruby-1.9.3,ruby-1.9.2,ruby-1.8.7,
ruby-1.9.3-jruby-1.7.0,ruby-1.8.7-jruby -1.7.0,ruby-1.9.3-jruby-1.7.1,
ruby-1.8.7-jruby-1.7.1,ruby-1.9.3-rbx-2.0.0dev,ruby-1.8.7 -rbx-2.0.0dev
!
!在尝试运行时,Heroku推送被拒绝,未能编译Ruby / rails应用程序
- > git push heroku master
ruby -v
ruby 1.9.3p385(2013 -02-06 revision 39114)[x86_64-darwin12.3.0]
在我的Gemfile& Gemfile.heroku
...
source'http:/ /rubygems.org'
ruby'1.9.3'
所有[步骤排除捆绑商问题](https://github.com/carlhuda/bundler/blob/master/ISSUES.md],但仍然没有运气。
解决方案您可以在您的gem文件中指定您的ruby版本为
来源https://rubygems.org
ruby1.9.3
然后 bundle install
本地并再次推送它。
I'm getting the following message when I push to Heroku:
Invalid RUBY_VERSION specified: Unfortunately,-a-fatal-error-has-occurred.-Please
-see-the-Bundler-troubleshooting-documentation-at-http://bit.ly/bundler-
issues.-Thanks!
! Valid versions: ruby-2.0.0, ruby-1.9.3, ruby-1.9.2, ruby-1.8.7,
ruby-1.9.3-jruby-1.7.0, ruby-1.8.7-jruby-1.7.0, ruby-1.9.3-jruby-1.7.1,
ruby-1.8.7-jruby-1.7.1, ruby-1.9.3-rbx-2.0.0dev, ruby-1.8.7-rbx-2.0.0dev
!
! Heroku push rejected, failed to compile Ruby/rails app
when trying to run -> git push heroku master
ruby -v
ruby 1.9.3p385 (2013-02-06 revision 39114) [x86_64-darwin12.3.0]
in my Gemfile & Gemfile.heroku
...
source 'http://rubygems.org'
ruby '1.9.3'
Did all the [steps to troubleshoot bundler issues](https://github.com/carlhuda/bundler/blob/master/ISSUES.md] but still no luck.
解决方案
you can specify your ruby version into your gem file as
source "https://rubygems.org"
ruby "1.9.3"
and then bundle install
locally and again push it.
这篇关于发布到Heroku的推送被拒绝,无效的RUBY_VERSION的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!
08-26 03:46