Skip to content

Instantly share code, notes, and snippets.

@fedir
Forked from andyh/gist:75867
Created June 7, 2013 04:38
Show Gist options
  • Save fedir/5727101 to your computer and use it in GitHub Desktop.
Save fedir/5727101 to your computer and use it in GitHub Desktop.
set :application, "appname"
set :repository, "[email protected]: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