2014-01-30 43 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