base.rb
Capistrano::Configuration.instance.load do
default_run_options[:pty] = true
ssh_options[:forward_agent] = true
set :scm, :git
set :deploy_via, :remote_cache
set :keep_releases, 7
set :use_sudo, false
set :branch, fetch(:branch, "master") unless exists?(:branch)
set :gateway, "#{fetch(:user, `whoami`.strip)}@your.dmz.com"
unless exists?(:gateway)
set :repository, "
[email protected]:agoragames/#{application}.git"
unless exists?(:repository)
set :deploy_to, "/var/rails/#{application}" unless exists?(:deploy_to)
set :shared_nfs_dir, "/var/shared/rails/#{application}"
end