Capistrano Remote Cache With sudo Deployment Strategy

This library extends the RemoteCache strategy in order to support deployment using sudo, e.g. when you deploy in a system where you have no root access and in locations outside the user's home directory, such as /var/www

Installation

Add this line to your application's Gemfile:

gem 'remote-cache-with-sudo'

And then execute:

$ bundle

Or install it yourself as:

$ gem install remote-cache-with-sudo

Usage

Add these lines to your Capistrano recipe:

set :deploy_via, "remote_cache_with_sudo"