# Capistrano is Crazy Delicious!

**URL:** <https://www.ruby-forum.com/t/capistrano-is-crazy-delicious/69567>\
**Category:** Rails\
**Created:** [September 21, 2006, 9:27pm UTC](https://www.ruby-forum.com/t/capistrano-is-crazy-delicious/69567 "2006-09-21T21:27:12Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![Terry\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/cc9497/32.png) [@Terry\_D](https://www.ruby-forum.com/u/Terry_D)\
**Post date:** [September 21, 2006, 9:27pm UTC](https://www.ruby-forum.com/t/capistrano-is-crazy-delicious/69567/1 "2006-09-21T21:27:12Z")

</div>

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](http://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.tadspot.com)

> **[太阳集团0638开头的网址✅【欢迎下载】](http://www.rubynoob.com)**
>
> 太阳集团0638开头的网址是一家创办历史悠久并且具有非常高的知名度的在线网娱乐平台为大家提供一个良好的彩票交流平台。

---

<div class="post-metadata">

**Author:** ![Terry\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/cc9497/32.png) [@Terry\_D](https://www.ruby-forum.com/u/Terry_D)\
**Post date:** [September 21, 2006, 9:53pm UTC](https://www.ruby-forum.com/t/capistrano-is-crazy-delicious/69567/2 "2006-09-21T21:53:15Z")

</div>

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://planyp.us)  
[http://skwpspace.com](http://skwpspace.com)

---

<div class="post-metadata">

**Author:** ![Terry\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/cc9497/32.png) [@Terry\_D](https://www.ruby-forum.com/u/Terry_D)\
**Post date:** [September 21, 2006, 10:27pm UTC](https://www.ruby-forum.com/t/capistrano-is-crazy-delicious/69567/3 "2006-09-21T22:27:20Z")

</div>

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://use@host: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 [youruser@1.2.3.4](mailto:youruser@1.2.3.4)

–  
– Tom M.

---

<div class="post-metadata">

**Author:** ![Terry\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/cc9497/32.png) [@Terry\_D](https://www.ruby-forum.com/u/Terry_D)\
**Post date:** [September 21, 2006, 10:37pm UTC](https://www.ruby-forum.com/t/capistrano-is-crazy-delicious/69567/4 "2006-09-21T22:37:25Z")

</div>

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. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid)

---

<div class="post-metadata">

**Author:** ![Terry\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/cc9497/32.png) [@Terry\_D](https://www.ruby-forum.com/u/Terry_D)\
**Post date:** [September 22, 2006, 12:01am UTC](https://www.ruby-forum.com/t/capistrano-is-crazy-delicious/69567/5 "2006-09-22T00:01:33Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![Terry\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/cc9497/32.png) [@Terry\_D](https://www.ruby-forum.com/u/Terry_D)\
**Post date:** [September 22, 2006, 10:34am UTC](https://www.ruby-forum.com/t/capistrano-is-crazy-delicious/69567/6 "2006-09-22T10:34:41Z")

</div>

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](http://groups.google.com/group/capistrano)

(btw thanks Jamie for creating this, you _are_ creating passionate users  
😉

cheers

Thibaut

---

<div class="post-metadata">

**Author:** ![Terry\_D](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/cc9497/32.png) [@Terry\_D](https://www.ruby-forum.com/u/Terry_D)\
**Post date:** [September 22, 2006, 12:35am UTC](https://www.ruby-forum.com/t/capistrano-is-crazy-delicious/69567/7 "2006-09-22T00:35:37Z")

</div>

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](http://planyp.us)
