run"cd#{current_path}&&mongrel_railscluster::configure-eproduction-p#{mongrel_port}-N#{mongrel_nodes}-c#{current_path}"
run"cd#{current_path}&&mongrel_railscluster::start"
#run"rm-rf/home/#{user}/public_html;ln-s#{current_path}/public/home/#{user}/public_html"
run"mkdir-p#{deploy_to}/shared/config"
run"mv#{current_path}/config/mongrel_cluster.yml#{deploy_to}/shared/config/mongrel_cluster.yml"
run"ln-s#{deploy_to}/shared/config/mongrel_cluster.yml#{current_path}/config/mongrel_cluster.yml"
run"apachectlstart"
end
end
#new3
namespace:deploydo
task:restart,:roles=>:appdo
run"ln-s#{deploy_to}/shared/config/mongrel_cluster.yml#{current_path}/config/mongrel_cluster.yml"
run"cd#{current_path}&&mongrel_railscluster::restart"
run"apachectlrestart"
end
end