set :application, "rails_wiki" set :repository, "http://svn.dpiddy.net/projects/i2_rails" role :web, "wrath.rubyonrails.org" role :app, "wrath.rubyonrails.org" role :db, "wrath.rubyonrails.org", :primary => true set :deploy_to, "/home/app/apps/#{application}" set :user, "app" task :after_update_code do run <<-CMD cp #{shared_path}/database.yml #{shared_path}/mongrel_cluster.yml #{current_release}/config CMD run <<-CMD cd #{current_release}/vendor && ln -nfs #{shared_path}/rails CMD end task :stop, :roles => :app do run "cd #{current_release} && mongrel_rails cluster::stop" end task :start, :roles => :app do run "cd #{current_release} && mongrel_rails cluster::start" end task :restart, :roles => :app do run "cd #{current_release} && mongrel_rails cluster::restart" end