Skip to content

Instantly share code, notes, and snippets.

@andyh
Created March 8, 2009 18:47
Show Gist options
  • Save andyh/75867 to your computer and use it in GitHub Desktop.
Save andyh/75867 to your computer and use it in GitHub Desktop.
set :application, "appname"
set :repository, "git@github.com:username/project.git"
# If you aren't deploying to /u/apps/#{application} on the target
# servers (which is the default), you can specify the actual location
# via the :deploy_to variable:
set :deploy_to, "/var/apps/#{application}"
set :scm, :git
set :branch, "master"
set :repository_cache, "git_master"
set :deploy_via, :remote_cache
set :scm_verbose, true
ssh_options[:forward_agent] = true
default_run_options[:pty] = true
role :app, "server.name"
role :web, "server.name"
role :db, "server.name", :primary => true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment