I execute
$ heroku run rake assets:clean
Running `rake assets:clean` attached to terminal... up, run.2
/usr/local/bin/ruby /app/vendor/bundle/ruby/1.9.1/bin/rak
The rake assets:clean functionality has been replaced with
rake assets:clobber
in the latest version of Rails.
https://github.com/rails/sprockets-rails/blob/master/README.md
I had to do:
heroku repo:purge_cache
and wait a bit. rake assets:clobber
did not work for me, even though it printed:
INFO -- : Removed /app/public/assets
rm -rf /app/tmp/cache/assets]
if you run the heroku command and get:
! `repo:purge_cache` is not a heroku command.
! See `heroku help` for a list of available commands.
install the command in your heroku toolbelt with:
heroku plugins:install https://github.com/heroku/heroku-repo.git
and rerun.