Setting your deploy via variable to remote cache in the configuration section of your deployment recipe allows you to keep a cached copy of your repository online, and subsequent calls to cap deploy will update the remote cache and copy it across to a new release.
There are no local checkouts, no need for your Internet connection to be the bottleneck, and no need to do any fancy setup.
The first time you run a “cap deploy” the script will check for the existence of /shared/cached-copy/ The directory will be created with a checkout of the latest revision if it doesn’t exist.
In your deploy.rb
set :deploy_via, :remote_cache
Just remember that this copies the repository verbatim, and is not the same as using svn export. So you’ll need to make sure you’ve setup Apache to protect your .svn directories:
<Directory ~ “^\.svnâ€> Deny from all </Directory>
About two months ago I bought my first mountain bike and since then I’ve dug up as much information as possible on Mountain biking in and around Christchurch. I’m putting together what I’ve found into this simple Christchurch Mountain Biking Guide to give you a head start.