Capistrano v3.* extension for copying files between releases
Add this line to your application's Gemfile:
gem 'capistrano', '~> 3.2.1'
gem 'capistrano-copy-files'
And then execute:
$ bundle
Or install it yourself as:
$ gem install capistrano-copy-files
Require the module in your Capfile
:
require 'capistrano/copy_files'
The deploy:copy_files
task will run during deploy:updating
in order to copy
files and/or directories from previous release. This allows to speed up a
deploy: for instance, you can copy a vendor directory where dependencies have
been previously installed by a package manager such as Composer or NPM.
Configurable options, shown here with defaults:
set :copy_files, []
set :copy_file_flags, ""
set :copy_dir_flags, "-R"
- Fork it
- Create your feature branch (
git checkout -b my-new-feature
) - Commit your changes (
git commit -am 'Add some feature'
) - Push to the branch (
git push origin my-new-feature
) - Create new Pull Request