capistrano / composer

Capistrano extension for Composer tasks
MIT License
183 stars 48 forks source link

Add optional copy_packages task #40

Closed mroach closed 9 years ago

mroach commented 9 years ago

Copies the vendor/ dir from the previous release. This can bring a significant reduction in deploy time when there are many dependencies. Note that using this feature makes vendor/ cumulative. That is, as packages are dropped they will not be automatically removed from vendor/ on deploy.

Adapted for Capistrano 3 from http://capifony.org/cookbook/speeding-up-deploy.html

sergeyklay commented 9 years ago

:+1:

swalkinshaw commented 9 years ago

There's an official Capistrano extension to generically handle this use case: https://github.com/capistrano/copy-files

mroach commented 9 years ago

@swalkinshaw Would you accept a pull request adding instructions to the README on how to use copy-files then to achieve this? I can't imagine I'm alone in finding the dependency install time to be a problem.

swalkinshaw commented 9 years ago

@mroach sure, that's a good idea.