Skip to content

Instantly share code, notes, and snippets.

@bradly
Created September 19, 2008 20:16
Show Gist options
  • Save bradly/11648 to your computer and use it in GitHub Desktop.
Save bradly/11648 to your computer and use it in GitHub Desktop.
set :application, "expensetracker"
set :deploy_to, "/home/dh_username/#{application}"
set :scm, :git
set :use_sudo, false
set :repository, "git@subdomain.unfuddle.com:bradly/#{application}.git"
set :branch, "master"
set :deploy_via, :remote_cache
set :user, 'dreamhost_username'
set :ssh_options, { :forward_agent => true }
role :app, "www.domainname.com"
role :web, "www.domainname.com"
role :db, "www.domainname.com", :primary => true
namespace :deploy do
desc "Restarting mod_rails with restart.txt"
task :restart, :roles => :app, :except => { :no_release => true } do
run "touch #{current_path}/tmp/restart.txt"
end
[:start, :stop].each do |t|
desc "#{t} task is a no-op with mod_rails"
task t, :roles => :app do ; end
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment