Heroku部署“预编译资产失败”在git推 [英] Heroku deploy "Precompiling assets failed" on git push
问题描述
我们使用Heroku fork命令来克隆我们的生产Rails 3应用程序进行一些测试。这是成功的。
We used the Heroku fork command to clone our production Rails 3 application for some testing. This was successful.
我们现在试图通过标准的heroku git push部署将更改推送到新的分叉应用程序。
We are now attempting to push changes to the new forked app via a standard heroku git push deploy.
我们正在收到预编译资产失败。和推送被拒绝,未能编译Ruby应用错误。
We are getting "Precompiling assets failed." and "Push rejected, failed to compile Ruby app" errors on each attempt.
这个确切的repo用于更新我们的生产应用程序,没有任何问题。
This exact repo is used for updates to our production application with no problems.
您可以指导我如何解决这个问题吗?
Can you direct me to how we might troubleshoot this?
推荐答案
如果你在Gemfile中包含gem'turbolinks'。在我的情况下,我没有多次部署应用程序(即使通过添加'initialize_on_precompile'修改了我的application.rb文件后),直到我更改了我的Gemfile并安装了缺少的gem。
Also, check if you included gem 'turbolinks' in your Gemfile. In my case I had failed to deploy the app multiple times (even after modifying my application.rb file via adding 'initialize_on_precompile') until I changed my Gemfile and installed missing gem.
另外,如果您以前没有看到过,有关Heroku上的分叉和部署的一些有用信息(部署一节): https://devcenter.heroku.com/articles/fork-app
Also, if you did not see before, there is some useful info concerning forking and deploying on Heroku (section "Deploy"): https://devcenter.heroku.com/articles/fork-app
这篇关于Heroku部署“预编译资产失败”在git推的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!