9
votes

I just upgraded my Rails 3.2.16 app's ruby version from 1.9.2 to 2.0.0 and everything is working fine locally. However, when trying to push to Heroku, it's failing to compile.

It detects the ruby version, starts installing dependencies, then crashes:

-----> Compiling Ruby/Rails
-----> Using Ruby version: ruby-2.0.0
-----> Installing dependencies using 1.5.2
   Ruby version change detected. Clearing bundler cache.
   Old: ruby 1.9.3p484 (2013-11-22 revision 43786) [x86_64-linux]
   New: ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-linux]
sh: Syntax error: EOF in backquote substitution
sh: Syntax error: EOF in backquote substitution
/app/tmp/buildpacks/ruby/lib/language_pack/ruby.rb:760:in `block in purge_bundler_cache': undefined local variable or method `install_language_pack_gems' for #<LanguagePack::Rails3:0x00000000c1d090> (NameError)

Seems like something simple, but I don't particularly want to mess with the buildpack.

This also happens for an app running on Ruby 2.0

-----> Installing dependencies using 1.5.2
       Ruby version change detected. Clearing bundler cache.
       Old: ruby 2.0.0p247 (2013-06-27 revision 41674) [x86_64-linux]
       New: ruby 2.0.0p353 (2013-11-22 revision 43784) [x86_64-linux]
sh: Syntax error: EOF in backquote substitution
sh: Syntax error: EOF in backquote substitution
/app/tmp/buildpacks/ruby/lib/language_pack/ruby.rb:760:in `block in purge_bundler_cache': undefined local variable or method `install_language_pack_gems' for #<LanguagePack::Rails4:0x00000002084a60> (NameError)
1
I just ran into this as well when upgrading my ruby version. Heroku had a maintenance window an hour or so ago...I wonder if this is related. - John
Ah yes, just got the same thing... - fighella
@fighella were you upgrading your ruby version? - John
I was hoping it was failing just during the maintenance window, but happened after too. I think it's related to the buildpack, which they've been patching and messing with for the last couple weeks. I opened an issue as well, so will keep you guys updated if I see anything there: github.com/heroku/heroku-buildpack-ruby/issues/218 - Lev
I got the same thing and I have the app running on Ruby 2.0 - Encore PTL

1 Answers

10
votes

Seems like it is not using the latest ruby buildpack. I was able to solve this by setting the BUILDPACK_URL

$ heroku config:set BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-ruby