Publify push to Heroku is rejected with invalid RUBY_VERSION

陌路散爱 提交于 2019-12-12 03:55:32

问题


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.


回答1:


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.



来源:https://stackoverflow.com/questions/16298490/publify-push-to-heroku-is-rejected-with-invalid-ruby-version

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!