“heroku run rake assets:clean” doesn't clean anything

前端 未结 2 717
情深已故
情深已故 2021-02-08 12:21

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         


        
相关标签:
2条回答
  • 2021-02-08 12:35

    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

    0 讨论(0)
  • 2021-02-08 12:48

    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.

    0 讨论(0)
提交回复
热议问题