Publify推的Heroku被拒绝,无效RUBY_VERSION(Publify push to

2019-11-02 02:46发布

我收到以下消息时,我推的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

试图运行时- > 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],但仍然没有运气。

Answer 1:

你可以指定你的Ruby版本到您的宝石文件

source "https://rubygems.org"
ruby "1.9.3"

然后bundle install在本地,并再次推。



文章来源: Publify push to Heroku is rejected with invalid RUBY_VERSION