Skip to content

Instantly share code, notes, and snippets.

@traviskroberts
Created May 28, 2010 20:27
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save traviskroberts/417693 to your computer and use it in GitHub Desktop.
Save traviskroberts/417693 to your computer and use it in GitHub Desktop.
# =============================================================================
# REQUIRED VARIABLES
# =============================================================================
set :application, "my_app"
set :domain, "mydomain.com"
set :deploy_to, "/var/www/#{domain}"
# =============================================================================
# SCM OPTIONS
# =============================================================================
set :scm, :subversion # or :git
set :scm_user, "username" # optional
set :scm_password, "password" # optional
set :repository, "http://svn.myrepo.com/#{application}/trunk/"
# =============================================================================
# SSH OPTIONS
# =============================================================================
set :user, "username"
set :use_sudo, false # optional
# =============================================================================
# ROLES
# =============================================================================
# Modify these values to execute tasks on a different server.
role :web, domain
role :app, domain
role :db, domain, :primary => true
# =============================================================================
# CAPISTRANO OPTIONS
# =============================================================================
set :keep_releases, 3
set :deploy_via, :remote_cache
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment