Heroku deploy “Precompiling assets failed” on git push

一世执手 提交于 2019-12-12 04:18:49

问题


We used the Heroku fork command to clone our production Rails 3 application for some testing. This was successful.

We are now attempting to push changes to the new forked app via a standard heroku git push deploy.

We are getting "Precompiling assets failed." and "Push rejected, failed to compile Ruby app" errors on each attempt.

This exact repo is used for updates to our production application with no problems.

Can you direct me to how we might troubleshoot this?


回答1:


try this in your config/application.rb

config.assets.initialize_on_precompile = false




回答2:


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.

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



来源:https://stackoverflow.com/questions/20713705/heroku-deploy-precompiling-assets-failed-on-git-push

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!