Capistrano is Crazy Delicious!

I just want to say that after finally figuring out how to make
Capistrano
work, it’s unbelievably cool. I kept hearing people in the Rails
community
freak out over it, but I had a heck of a hard time making it work - I
think
in part because I’m trying to deploy from windows, but also because I’m
a
big unix noob.

For any of you out there struggling with Capistrano, keep at it! The
payoff
is huge once you can successfully deploy and rollback your app.

I’m going to try to have a full tutorial up on RubyNoob.com for running
Cap
in Windows either late tonight PST or sometime tommorow. I’m almost
done
with it.

Terry (TAD) Donaghe
http://www.tadspot.com
http://www.rubynoob.com

Has anyone gotten capistrano to work successfully with a nonstandard
svn+ssh port? One way I see of doing this is setting the SVN_SSH
environment variable, but is there a capistrano way of doing this?


Yan
http://planyp.us
http://skwpspace.com

On Sep 21, 2006, at 12:47 PM, Yan Pritzker wrote:

Has anyone gotten capistrano to work successfully with a nonstandard
svn+ssh port? One way I see of doing this is setting the SVN_SSH
environment variable, but is there a capistrano way of doing this?

I can think of one potential way to do this, and one sure thing:

Potential:
svn+ssh://[email protected]:port/application/trunk

(Reasonably) Sure Thing:

In your ~/.ssh/config file, add an entry like this:

Host yourhost
Hostname 1.2.3.4
Port 6000
HostKeyAlias yourhost

I just discovered ~/.ssh/config, and it’s very cool!

You can add a User entry, so that you don’t have to specify which
user for each and every host…

Host yourhost
Hostname 1.2.3.4
Port 6000
HostKeyAlias yourhost
User youruser

With this entry, when you type in:

ssh yourhost

It will actually do:

ssh -p 6000 [email protected]


– Tom M.

Yeah I know both of these methods. The first doesn’t work (for some
reason
svn just really doesn’t care for ports embedded in the url). The second
might work, have to try, but I was hoping for something that could be
reasonably included in the cap config itself. Since ~/.ssh/config is
very
platform dependent and I haev developers even (gasp) working on windows
boxes, and ideally we wanted to be able to launch the cap action from
any
dev box.

Yan

On Thu, 21 Sep 2006 15:23:05 -0500, Tom M. [email protected]

On Sep 21, 2006, at 1:32 PM, Yan Pritzker wrote:

boxes, and ideally we wanted to be able to launch the cap action
from any
dev box.

Yan

You can set it right in your deploy.rb like this:

ssh_options[:port] = 2345

Cheers-
-Ezra

Hi!

I tried this but it doesn’t seem to take effect for svn…

you should get more answers if you ask those questions on the new
capistrano google group: http://groups.google.com/group/capistrano

(btw thanks Jamie for creating this, you are creating passionate users
:wink:

cheers

Thibaut

Ezra,

I tried this but it doesn’t seem to take effect for svn…it connects to
my ssh on port 2022 but then says

ssh: connect to host […/ port 22: Connection refused
svn: Connection closed unexpectedly


Yan
http://planyp.us

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