Skip to content

Instantly share code, notes, and snippets.

@mattfordham
Created July 31, 2012 04:24
Show Gist options
  • Save mattfordham/3213602 to your computer and use it in GitHub Desktop.
Save mattfordham/3213602 to your computer and use it in GitHub Desktop.
# This will end up being the directory things are deployed under
set :application, "example.com"
# Change to your ip address
server "123.123.123.123", :app, :web, :db, :primary => true
# This is the location on the server where things will be deployed to. #{application} will be replaced by whatever your set for :application above.
set :deploy_to, "/var/www/#{application}"
# About the user you created on the server
set :user, "root"
# This helps password entry work correctly, I think.
default_run_options[:pty] = true
# The deets of your Git repo
set :repository, "git@github.com:/my_repo.git"
set :scm, :git
set :branch, "master"
# This configures how Capistrano will deploy the code. The below have worked well for me.
set :deploy_via, :remote_cache
set :copy_strategy, :checkout
set :keep_releases, 5
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment