No commit activity in last 3 years
No release in over 3 years
Uses rsync to copy a local directory to your deployment servers
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Runtime

 Project Readme

Capistrano::SCM::Rsync

Gem Version Build Status Dependency Status Code Climate Coverage Status

capistrano-scm-rsync allows you to use rsync to deploy your application to your servers.

  • Tested against Ruby 2.x
  • Ruby < 2.0 is not supported

Installation

Add it to your Gemfile:

gem 'capistrano-scm-rsync'
$ bundle install

Use the plugin with capistrano by adding it to your Capfile:

require 'capistrano/scm/rsync'
install_plugin Capistrano::SCM::Rsync

Configuration

In your config/deploy.rb:

set :rsync_options,
    # The local directory to be copied to the server.
    source: 'app',
    # The cache directory on the server that receives files
    # from the source directory. Relative to shared_path or
    # an absolute path.
    # Saves you rsyncing your whole app folder each time. If
    # set to nil Capistrano::SCM::Rsync will sync directly to
    # the release_path.
    cache: 'cache',
    # Arguments passed to rsync when...
    args: {
      # ...copying the local directory to the server.
      local_to_remote: [],
      # ...copying the cache directory to the release_path.
      cache_to_release: %w(--archive --acls --xattrs)
    }

Example

See https://github.com/dnugleipzig/deploy.

Development

Pull requests are very welcome! Make sure your patches are well tested. Please create a topic branch for every separate change you make.

Contributing

  1. Fork it http://github.com/agross/capistrano-scm-rsync/fork
  2. Create your feature branch (git checkout -b my-new-feature)
  3. Commit your changes (git commit -am 'Add some feature')
  4. Push to the branch (git push origin my-new-feature)
  5. Create new Pull Request