generators/vulcanize/templates/mongrel/config/rubber/deploy-mongrel.rb in nirvdrum-rubber-1.1.7 vs generators/vulcanize/templates/mongrel/config/rubber/deploy-mongrel.rb in nirvdrum-rubber-2.0.0.rails3.beta6

- old
+ new

@@ -19,19 +19,19 @@ ENDSCRIPT end def mongrel_stop - run "cd #{current_path} && mongrel_rails cluster::stop" + rsudo "cd #{current_path} && mongrel_rails cluster::stop" sleep 5 # Give the graceful stop a chance to complete - run "cd #{current_path} && mongrel_rails cluster::stop --force --clean" + rsudo "cd #{current_path} && mongrel_rails cluster::stop --force --clean" end def mongrel_start - run "cd #{current_path} && mongrel_rails cluster::start --clean" + rsudo "cd #{current_path} && mongrel_rails cluster::start --clean" pid_cnt = rubber_env.mongrel_count logger.info "Waiting for mongrel pid files to show up" - run "while ((`ls #{current_path}/tmp/pids/mongrel.*.pid 2> /dev/null | wc -l` < #{pid_cnt})); do sleep 1; done" + rsudo "while ((`ls #{current_path}/tmp/pids/mongrel.*.pid 2> /dev/null | wc -l` < #{pid_cnt})); do sleep 1; done" end # serial_task can only be called after roles defined - not normally a problem, but # rubber auto-roles don't get defined till after all tasks are defined on :load do