Capistrano::GitCopy
This gem provides the GitCopy SCM strategy for Capistrano v3. It creates an archive locally (from git), uploads to the server, unpacks and creates the release as usual. This avoids having to manage deploy keys on your server nor connectivity from the server to the git repository. This is particular useful for private git repos and codebases.
Notes
If you use this integration with capistrano-rails, please ensure that you have capistrano-bundler >= 1.1.0
.
Installation
Add this line to your application's Gemfile:
# Gemfile
gem 'capistrano', '~> 3.0'
gem 'capistrano-gitcopy'
And then execute:
$ bundle install
Usage
Require in Capfile to use the default task:
# Capfile
require 'capistrano/gitcopy'
On your deploy.rb change the scm strategy:
set :scm, :gitcopy
And you should be good to go!
Contributing
- 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