Skip to content

Instantly share code, notes, and snippets.

@kaspergrubbe
Created June 18, 2013 22:02
Show Gist options
  • Save kaspergrubbe/5809853 to your computer and use it in GitHub Desktop.
Save kaspergrubbe/5809853 to your computer and use it in GitHub Desktop.
# The deploy strategies are:
# checkout (default) - This makes the servers do a git clone to update code
# export - This makes a git export instead of checkout (But what really happens is a checkout
# followed by a deletion of the .git-dirs, use checkout instead)
# remote_cache - This keeps a remote git repo on the servers, when deploying it does a git pull
# and copies the files to the release path.
# copy - This strategy checks out the branch to your local machine, compresses it, and copies
# the code to each server and uncompress it. This is smart when Github is failing.
# But if you live in Belgium and need to upload it to the danish servers, you might
# not want to use it.
#
# source: https://github.com/capistrano/capistrano/tree/master/lib/capistrano/recipes/deploy/strategy
# https://help.github.com/articles/deploying-with-capistrano
set :deploy_via, :copy
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment