Deployment script not working after upgrading to Cap 2.1

2 views
Skip to first unread message

Chris Hartjes

unread,
Nov 30, 2007, 3:21:50 PM11/30/07
to capis...@googlegroups.com
Hi there,

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

eden li

unread,
Dec 1, 2007, 8:24:53 AM12/1/07
to Capistrano
we need more information here. what's the error and which part of
your script is failing?

Chris Hartjes

unread,
Dec 1, 2007, 2:19:58 PM12/1/07
to capis...@googlegroups.com
On Dec 1, 2007 8:24 AM, eden li <ede...@gmail.com> wrote:
>
> we need more information here. what's the error and which part of
> your script is failing?

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.

Reply all
Reply to author
Forward
0 new messages