2014-01-30 45 views
4

Heroku Deploy for Rails应用程序当前失败。我收到以下错误消息。我没有改变任何宝石或栏杆代码,只是改变了一些静态的HTML和CSS文件。Heroku部署错误:'sh:Syntax error:EOF in backquote substitution'and undefined local variable or method`install_language_pack_gems'

-----> 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) 
+1

是的,同样在这里。 Heroku,来吧 – Arcolye

回答

5

这是Heroku的错。也许只是一些缓存问题,但也许他们只是破坏了一些东西。总之,解决的办法是设置BUILDPACK_URL为您的应用程序指向最新的Ruby的Heroku buildpack:

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

+0

这对我很好。谢谢。 – McFadden

+0

这不应该再需要,我们解决了这个问题。 – Schneems

0

从命令行尝试此操作。我认为你正在升级版本,而不是指向正确的buildpack。

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

此处了解详情:https://devcenter.heroku.com/articles/buildpacks