public
Created

My Capistrano Deploy

  • Download Gist
deploy.rb
Ruby
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
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

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.