在推動Rails4代碼的Heroku我碰到下面的錯誤,這已經開始在最近2天,否則一個平穩的過程Heroku的資產預編譯失敗的國際化-JS
Writing config/database.yml to read from DATABASE_URL
-----> Preparing app for Rails asset pipeline
Running: rake assets:precompile
rake aborted!
couldn't find file '/tmp/build_b6402ff8-bda2-4bc5-95dc-2efe7a9044bc/tmp/i18n-js.cache'
(in /tmp/build_b6402ff8-bda2-4bc5-95dc-2efe7a9044bc/vendor/bundle/ruby/2.0.0/gems/i18n-js-2.1.2/vendor/assets/javascripts/i18n/translations.js.erb)
/tmp/build_b6402ff8-bda2-4bc5-95dc-2efe7a9044bc/vendor/bundle/ruby/2.0.0/gems/sprockets-2.10.0/lib/sprockets/context.rb:87:in `resolve'
這裏是從入門發生我production.rb
config.assets.initialize_on_precompile = true
我能夠運行RAILS_ENV =生產耙資產:預編譯本地。雖然我不會將預編譯的資產推送到服務器。
我通過我的gem文件安裝了I18n-js 2.1.2版本,它的Rails4服務器爲我運行。
需要緊急幫助。
不只是推前當地,作爲當地一個沒有幫助:更改以下行application.rb中? – sudhanshu
rake tmp:在push之前在本地清除,didoku run run rake tmp:clear --app XXXXXXXX錯誤保持不變。 – sudhanshu
您可能還需要清除當地的tmp,因爲這些文件會在推送應用時推送到heroku。 –