Create a gist now

Instantly share code, notes, and snippets.

My Capistrano Deploy
set :application, "nests"
set :repository, ""
set :scm, :git
set :user, "dan"
set :deploy_to, "~/apps/#{application}"
set :deploy_via, :remote_cache
set :keep_releases, 5
set :branch, "master"
set :use_sudo, false
ssh_options[:forward_agent] = true
ssh_options[:paranoid] = false
server "", :app, :web, :db
# if you're still using the script/reaper helper you will need
# these
# If you are using Passenger mod_rails uncomment this:
namespace :deploy do
task :start do ; end
task :stop do ; end
task :restart, :roles => :app, :except => { :no_release => true } do
run "#{try_sudo} touch #{File.join(current_path,'tmp','restart.txt')}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment