Please help me understand what heroku run rake assets:precompile exactly does. Ever since I began working on ruby on rails, I would always run these three comma
For anyone having trouble figuring out why Heroku won't compile your assets automatically:
If a public/assets/manifest.yml is detected in your app, Heroku will assume you are handling asset compilation yourself and will not attempt to compile your assets. Rails 4 uses a file called public/assets/manifest-.json instead. On both versions you can generate this file by running $ rake assets:precompile locally and checking the resultant files into Git.
I found a sprockets-manifest-*.json and Heroku started compiling my assets automatically after I deleted this file.
In my case, this file was generated by the script rails_composer.