published under license Attribution-ShareAlike 4.0 International (CC BY-SA 4.0)copy! share!
posted in category Software Development & Programming / Ruby on Rails
posted at 24. Aug '21
Howto Remove All Precompiled Assets
RAILS_ENV=staging NODE_ENV=production bin/rails tmp:clear assets:clobber RAILS_ENV=staging NODE_ENV=production bin/rails assets:precompile
Or just remove
public/packs and sprockets cache in
Useful when recompiling assets on staging for some reason or get rid of precompiled assets in development environment (once precompiled, Rails will ignore changes to assets).