I'm using cap to deploy PHP applications and things were working
okay...until I updated to the latest version. Here's the deploy.rb
file I'm using:
set :application, "app"
set :repository, "svn+ssh://ch...@yyy.xxx.com/opt/repos/zzz.com"
role :web, "aaa.xxx.com"
set :deploy_to, "/var/www/zzz.com"
set :checkout, "export"
set :user, "chris"
set :password, "*****"
task :deploy do
run "sudo cp -r #{deploy_to} #{deploy_to}-old" do |ch, stream, out|
ch.send_data "#{password}\n" if out =~ /Password:/
end
run "sudo svn #{checkout} #{repository} #{deploy_to}" do |ch, stream, out|
ch.send_data "#{password}\n" if out =~ /password:/
end
end
task :rollback do
run "sudo mv -r #{deploy_to}-old #{deploy_to}" do |ch, steam, out|
ch.send_data "#{password}\n" if out =~ /Password:/
end
end
I was hoping someone here could point out to me why this might be
failing now that I've upgraded...
--
Chris Hartjes
My motto for 2007: "Just build it, damnit!"
@TheKeyboard - http://www.littlehart.net/atthekeyboard
D'uh. I forgot the error.
The error is happening when it tries to execute the 'sudo svn ...'
command. It simply tells me that the command failed. Which is
strange because (a) it does the 'sudo cp ...' command no problem and
it used to do the whole script without reporting any errors.