本文介绍了在推送到Heroku之前自动预先编译资源的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

是否有可能在推送到Heroku之前自动预编译我的资产到Rails应用程序中?我总是忘记这么做,所以如果我输入 code>,然后推送,修复问题。

I finally figured this out. I was indeed on the Cedar stack. The problem was that I had checked my public directory into Git, and when I pushed to Heroku, it realized that public existed, and thus assumed I precompiled. Running git rm -r public and adding public/** to my .gitignore, then pushing, fixes the problem.

这篇关于在推送到Heroku之前自动预先编译资源的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-27 14:03