Skip to content

Instantly share code, notes, and snippets.

@urieljuliatti
Created February 15, 2012 17:39
Show Gist options
  • Save urieljuliatti/1837535 to your computer and use it in GitHub Desktop.
Save urieljuliatti/1837535 to your computer and use it in GitHub Desktop.
require "bundler/capistrano"
set :application, "stressmeter"
set :scm, :subversion
role :app, "stressmeter.urieljuliatti.com"
role :web, "stressmeter.urieljuliatti.com"
role :db, "stressmeter.urieljuliatti.com", :primary => true
set :user, "uriel"
set :use_sudo, false
set :deploy_to, "/home/uriel/stressmeter"
set :scm, :git
set :scm_username, "urieljuliatti"
set :repository, "[email protected]:urieljuliatti/stressmeter.git"
set :branch, "master"
set :keep_releases, 5
ssh_options[:forward_agent] = true
namespace :deploy do
task :start do ; end
task :stop do ; end
task :restart, :roles => :app, :except => { :no_release => true } do
run "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