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

Fix for issue #12 #16

Open elik-ru opened 8 years ago

elik-ru commented 8 years ago

Possible fix for issue #12

add a line to deploy.rb :

set :faster_assets_skip_cp, true

and assets will not be copied

rhomeister commented 8 years ago

Could you check whether https://github.com/capistrano-plugins/capistrano-faster-assets/pull/14 solves your problem? I've just merged this into master.

elik-ru commented 8 years ago

14 is a bad decision.

  1. -T key exists only in Linux, not in FreeBSD, MacOS and may be some other systems
  2. There is no need to copy assets at all

capistrano/rails/asset gem adds assets folder in :linked_dirs. So public/assets in each release folder is a symlink to shared/public/assets. And 'copy -Tr' will copy each file inside assets into itself. It's just a waste of time.