How to debug capistrano?

I have a hard authentication problem with capistrano and want to track
it down using the ruby debugger. (Using cap -d is not sufficient)

How to start capistrano in the ruby debugger?

On Jan 29, 2010, at 11:30 AM, Fritz T. wrote:

I have a hard authentication problem with capistrano and want to track
it down using the ruby debugger. (Using cap -d is not sufficient)

How to start capistrano in the ruby debugger?

rdebug cap deploy

?

But I usually just type in the commands Capistrano would have used one
at a time until I figure out what the matter is.

BTW: There is a Capistrano Google Group:
http://groups.google.com/group/capistrano

HTH

Steve R. wrote:
Thanks for your reply.

But I usually just type in the commands Capistrano would have used one
at a time until I figure out what the matter is.

I also did this, but the odd thing ist, that I can run the commands
through a ssh shell w/o problems. Only capistrano fails because with
“Permission denied (publickey,password).”

BTW: There is a Capistrano Google Group:

I know. The problem seems to be too odd…

One more question to the ruby debugger:

I use some set commands at the start of my debug sessions. These
commands are always the same. Is there a possibilty to write these
commads in a confuguration file, which is loaded automatically at start
up?

On Jan 29, 2010, at 11:30 , Fritz T. wrote:

I have a hard authentication problem with capistrano and want to track
it down using the ruby debugger. (Using cap -d is not sufficient)

How to start capistrano in the ruby debugger?

That’s a long slippery road my friend. I wound up debugging cap by
writing vlad… :confused:

Curious, what OS are you deploying to?

Ryan D. wrote:

That’s a long slippery road my friend.

But better than grinding in an endless loop… And an opportunity to
see, how it works and how ruby works. (I’m newbee to ruby & rails.)

I wound up debugging cap by writing vlad… :confused:

Good keyword, thanks. I’ll take a look at it. Which link for would you
suggest for documentation?

Curious, what OS are you deploying to?

From ubuntu to ubuntu.

Fritz T. wrote:

One more question to the ruby debugger:

I use some set commands at the start of my debug sessions. These
commands are always the same. Is there a possibilty to write these
commads in a confuguration file, which is loaded automatically at start
up?

.rdebugrc gets executed befor the debug session starts.

On Jan 29, 2010, at 14:50 , Fritz T. wrote:

Ryan D. wrote:

That’s a long slippery road my friend.

But better than grinding in an endless loop… And an opportunity to
see, how it works and how ruby works. (I’m newbee to ruby & rails.)

I wound up debugging cap by writing vlad… :confused:

Good keyword, thanks. I’ll take a look at it. Which link for would you
suggest for documentation?

http://hitsquad.rubyforge.org/vlad/

I had a similar issue when I first used capistrano to begin deployment
with github. I ended up using SSH and forcing a first time pull on the
server using the same credentials and then after the pull was
successful, capistrano worked fine afterward.

The issue turned out to be that the public key wasn’t updating correctly
and after doing this, it worked out great.

@ Ryan D.:

OK, I found http://rubyhitsquad.com/Vlad_the_Deployer.html - very
interesting. Thanks.

This forum is not affiliated to the Ruby language, Ruby on Rails framework, nor any Ruby applications discussed here.

| Privacy Policy | Terms of Service | Remote Ruby Jobs