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 heroku master, it would first run rake assets:precompile ; git commit add . ; git commit -a -m "Precompile.", or something to that effect.
Has anyone achieved such a solution? Possibly without hooks? Though I suspect that is the only way.
I finally figured this out. I was indeed on the Cedar stack. The problem was that I had checked my
publicdirectory into Git, and when I pushed to Heroku, it realized thatpublicexisted, and thus assumed I precompiled. Runninggit rm -r publicand addingpublic/**to my.gitignore, then pushing, fixes the problem.