As of
2.2.2,
capifony provides this task. To use it, add set :copy_vendors, true to your deploy.rb file
With default configuration, capifony will reinstall all your vendors for each deploy.
If you feel that is inefficient, you can manage to have your vendors just updated, not
reinstalled.
Add these lines to your deploy.rb file:
Now, each time you deploy, your vendors will be copied from your previous release,
and then vendors will be updated, not reinstalled from scratch. This means that, in
case you did not change your vendors, deploy will be faster.
Please notice that is not the same as putting your vendors folder in shared.
A shared vendor folder does not allow for real independent releases, and also causes
a downtime on your current release while deploying.
If you don’t need a prompt asking you if you want to copy vendors, you can use
the following code:
Found a typo? Something is wrong in this documentation? Just fork and edit it !