Skip to content

Instantly share code, notes, and snippets.

@rchampourlier
Created October 11, 2011 17:07
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 rchampourlier/1278693 to your computer and use it in GitHub Desktop.
Save rchampourlier/1278693 to your computer and use it in GitHub Desktop.
Capistrano deploy.rb for a server hosting the git repository
set :use_sudo, false
set :git_shallow_clone, 1 # tell git to clone only the latest revision and not the whole repository
set :keep_releases, 5
set :application, "app"
set :repository, "git@127.0.0.1:app.git"
set :user, "deployer"
set :password, "deployer_password"
set :deploy_to, "/home/deployer/rails/app"
set :runner, "deployer"
set :scm, :git
#options necessary to make Ubuntu’s SSH happy
ssh_options[:paranoid] = false
default_run_options[:pty] = true
role :app, "127.0.0.1"
role :web, "127.0.0.1"
role :db, "127.0.0.1", :primary => true
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment