Skip to content

Instantly share code, notes, and snippets.

@agirorn
Created February 15, 2011 11:20
Show Gist options
  • Save agirorn/827418 to your computer and use it in GitHub Desktop.
Save agirorn/827418 to your computer and use it in GitHub Desktop.
$:.unshift(File.expand_path('./lib', ENV['rvm_path'])) # Add RVM's lib directory to the load path.
require 'rvm/capistrano' # Load RVM's capistrano plugin.
require 'bundler/capistrano'
require 'whenever/capistrano'
set :application, 'application_name'
set :base_path, '/u/apps'
default_run_options[:pty] = true
set :scm, :git
set :repository, 'ssh://git.domain.com/var/git/application.git'
set :branch, 'master'
set(:rvm_ruby_string) { File.read('.rvmrc').gsub(/rvm\s+/, '') }
set :keep_releases, fetch(:keep_releases, 10 )
set :use_sudo, false
set :user, 'deploy'
set :runner, 'deploy'
set :application_user, 'deploy'
set :application_group, 'www-data'
set(:deploy_to) { "#{base_path}/#{application}/#{stage}" }
require 'capistrano/ext/multistage'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment