Created
October 24, 2011 02:26
-
-
Save danhere/1308243 to your computer and use it in GitHub Desktop.
My Capistrano Deploy
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
set :application, "nests" | |
set :repository, "[email protected]: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