Is it possible to skip the asset precompile step for a single git push on Heroku?

heroku, ruby-on-rails, ruby-on-rails-3.2

Solution

Sure! You'll need to create a `manifest.yml` in `your_app/pubilc/assets` directory.

The file can be blank. But ideally, you precompile everything locally, so deploys to Heroku would be much faster.

Make sure that you also committed the `manifest.yml` file when you're pushing to Heroku. Something like `git add -f your_app/pubilc/assets/manifest.yml` and a `git push heroku master` should suffice.

Problem

Every time I deploy my Rails 3.2 project to Heroku, `rake assets:precompile` is run: ``` $ git push heroku master ... ----> Preparing app for Rails asset pipeline Running: rake assets:precompile Asset precompilation completed (189.17s) ... ``` Sometimes I want to make a push that I know does not change any assets, such as a quick hotfix to a controller. Is it possible to skip the asset:precompile step for a single git push to Heroku? Thanks.

Original source