Created
July 31, 2012 04:24
-
-
Save mattfordham/3213602 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# 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