Skip to content

Instantly share code, notes, and snippets.

@neilsarkar
Created November 11, 2010 18:07
Show Gist options
  • Save neilsarkar/672917 to your computer and use it in GitHub Desktop.
Save neilsarkar/672917 to your computer and use it in GitHub Desktop.
require 'bundler/capistrano'
set :application, 'app_name'
set :repository, 'git@github.com:username/app_name.git'
set :deploy_to, "/var/www/#{application}"
set :scm, 'git'
set :user, 'username'
server 'example.com', :app, :web, :db, :primary => true
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