Skip to content

Instantly share code, notes, and snippets.

@danhere
Created October 24, 2011 02:26
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 danhere/1308243 to your computer and use it in GitHub Desktop.
Save danhere/1308243 to your computer and use it in GitHub Desktop.
My Capistrano Deploy
set :application, "nests"
set :repository, "git@github.com:danhere/nests.git"
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 "meettimes.com", :app, :web, :db
# if you're still using the script/reaper helper you will need
# these http://github.com/rails/irs_process_scripts
# 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')}"
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment