capistrano-plugins / capistrano-faster-assets

Skips asset compilation if none of the assets were changed since last release.
MIT License
186 stars 38 forks source link

Update path to sprockets asset manifest. #29

Closed andydust closed 7 years ago

andydust commented 7 years ago

We noticed our assets were precompiling on every deployed.

The task also generates a .sprockets-manifest-md5hash.json (where md5hash is an MD5 hash) that contains a list with all your assets and their respective fingerprints. This is used by the Rails helper methods to avoid handing the mapping requests back to Sprockets.

http://guides.rubyonrails.org/asset_pipeline.html

andydust commented 7 years ago

Worth noting that capistrano-rails already handles this path: https://github.com/capistrano/rails/blob/master/lib/capistrano/tasks/assets.rake#L104-L115

rhomeister commented 7 years ago

Fixed in af3972964dcf1fe89de29b1298aa4f39532b9705. This is also backwards compatible with Sprockets 2.0.