Automatically precompile assets before pushing to Heroku

后端 未结 5 1230
醉酒成梦
醉酒成梦 2021-02-04 15:15

Is it possible to automatically precompile my assets in a Rails app before pushing out to Heroku? I always forget to do it, so it would be nice if when I typed git push he

5条回答
  •  一整个雨季
    2021-02-04 15:27

    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.

提交回复
热议问题