[Capistrano] Re: Changing directory in task

2008-10-09 Thread Lee Hambley
It is worth noting for the sake of completeness - although it's more of a Bash (or any shell) feature. That will execute the following task only if the first one is successful. run cd /path ls -al Wouldnt' run the ls command if it couldn't change directory.. which in this instance makes

[Capistrano] using non-standard port with capistrano and git

2008-10-09 Thread ohlhaver
Hi, I am trying to deploy to my production server using a non-standard port, such as 1234 . (Using capistrano, git and github as repo.) Everything worked perfectly when I used port 22. I updated the deploy.rb as follows: ssh_options[:port] = 1234 But now I am getting this error: 'ssh:

[Capistrano] Re: using non-standard port with capistrano and git

2008-10-09 Thread Lee Hambley
Hi Justus, There probably is a way to do this in your capistrano configuration - but I can vouch for Net::SSH honoring your port settings from your ssh client configuration file. Todo: 1. Edit ~/.ssh/config 2. Add something like this: Host my.host.com Port 3. Ensure

[Capistrano] Re: using non-standard port with capistrano and git

2008-10-09 Thread justus ohlhaver
Hi Lee, Thanks a lot for your help. This was resolved by setting the default port to 22 in /etc/ssh/ssh_config on the prod server. Thanks again and good night, Justus On Thu, Oct 9, 2008 at 11:20 PM, Lee Hambley [EMAIL PROTECTED] wrote: Hi Justus, There probably is a way to do this in