Skip to content

Instantly share code, notes, and snippets.

@medlefsen
Created April 26, 2012 18:34
Show Gist options
  • Save medlefsen/2501748 to your computer and use it in GitHub Desktop.
Save medlefsen/2501748 to your computer and use it in GitHub Desktop.
capistran-drush config example
require 'capistrano-drush'
# Defaults to deploying the current directory. Uncomment and modify below to customize
# set :scm, :git
# set :repository, "MY REPO"
# set :makefile, "distro.make"
# Set target to a drush alias to deploy to it. The @ is optional. Can also be supplied via TARGET=@dev on command line
# Use drush group aliases or a comma separated list of aliases to deploy to multiple servers at once
# set :target, "@dev"
source "http://rubygems.org"
gem 'capistrano-drush', :git => 'git://github.com/xforty/capistrano-drush.git'
@medlefsen
Copy link
Author

To setup run "bundle exec cap deploy:setup"
Then run "bundle exec cap deploy"
Optionally set the target with "bundle exec cap deploy TARGET=dev"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment