Heroku Deploy error: "sh: Syntax error: EOF in backquote substitution" and undefined local variable or `install_language_pack_gems' method

There is currently no Heroku Deploy for Rails application. I get the following error message. I did not change the code for gems or rails, but simply changed some static HTML and CSS files.

-----> Ruby app detected
-----> 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 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:0x00000001974ab8> (NameError)
+4
source share
2 answers

This is Heroku's mistake. Perhaps this is just a cache problem, but maybe they broke something. Anyway, the solution is to install BUILDPACK_URLfor your application to point to the latest Ruby Heroku buildpack:

heroku config:set BUILDPACK_URL=https://github.com/heroku/heroku-buildpack-ruby -a <app-name>

+5
source

. , - buildpack.

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

: https://devcenter.heroku.com/articles/buildpacks

0

Source: https://habr.com/ru/post/1524416/


All Articles