# Capistrano & Windows woes

**URL:** <https://www.ruby-forum.com/t/capistrano-windows-woes/113538>\
**Category:** Deployment\
**Created:** [September 1, 2007, 11:12am UTC](https://www.ruby-forum.com/t/capistrano-windows-woes/113538 "2007-09-01T11:12:10Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jnicholson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/cab0a1/32.png) [@jnicholson](https://www.ruby-forum.com/u/jnicholson)\
**Post date:** [September 1, 2007, 11:12am UTC](https://www.ruby-forum.com/t/capistrano-windows-woes/113538/1 "2007-09-01T11:12:10Z")

</div>

I’ve managed to setup SVN on my windows XP box without too much hassle.  
I can commit and export without any problems. But when I try to run cap  
deploy I get the error below. Any ideas?

—ERROR-----------------------------------------------------------------------

D:\Coding\Rails\myapp\>cap deploy

- executing `deploy’
- executing `deploy:update’  
\*\* transaction: start
- executing `deploy:update\_code’
- executing “svn export -q -r11 svn://localhost/myapp  
/home/myapp/myapp/re  
leases/20070901090649 && (echo 11 \>  
/home/myapp/myapp/releases/20070901090649/  
REVISION)”  
servers: [“[myapp.com](http://myapp.com)”]  
Password:  
[[myapp.com](http://myapp.com)] executing command  
\*\* [out] svn: Can’t connect to host ‘localhost’: Connection refused  
command finished  
\*\*\* [deploy:update\_code] rolling back
- executing “rm -rf /home/myapp/myapp/releases/20070901090649; true”  
servers: [“[fapbox.com](http://fapbox.com)”]  
[[fapbox.com](http://fapbox.com)] executing command  
command finished  
command “svn export -q -r11 svn://myapp/myapp  
/home/myapp/myapp/releases  
/20070901090649 && (echo 11 \>  
/home/myapp/myapp/releases/20070901090649/REVISI  
ON)” failed on [myapp.com](http://myapp.com)

---

<div class="post-metadata">

**Author:** ![jnicholson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/cab0a1/32.png) [@jnicholson](https://www.ruby-forum.com/u/jnicholson)\
**Post date:** [September 1, 2007, 11:34am UTC](https://www.ruby-forum.com/t/capistrano-windows-woes/113538/2 "2007-09-01T11:34:34Z")

</div>

On 9/1/07, Jim N. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> I’ve managed to setup SVN on my windows XP box without too much hassle.  
> I can commit and export without any problems. But when I try to run cap  
> deploy I get the error below. Any ideas?

Him, is [myapp.com](http://myapp.com) poiting to localhost?

Capistrano requires a SSH server which is almost impossible get it  
working right on a Windows environment.

Look for sshd server for windows, which requires cygwin and emulates  
bash shell for the commands Capistrano call.

HTH,

## – Luis L. Multimedia systems

Leaders are made, they are not born. They are made by hard effort,  
which is the price which all of us must pay to achieve any goal that  
is worthwhile.  
Vince Lombardi

---

<div class="post-metadata">

**Author:** ![jnicholson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/cab0a1/32.png) [@jnicholson](https://www.ruby-forum.com/u/jnicholson)\
**Post date:** [September 1, 2007, 2:10pm UTC](https://www.ruby-forum.com/t/capistrano-windows-woes/113538/3 "2007-09-01T14:10:59Z")

</div>

Thanks for the reply.

Would it be easier if I just setup SVN on my server (fedora core 5)? If  
some are there any decent, easy to follow tutorials out there for a  
server n00b?

---

<div class="post-metadata">

**Author:** ![jnicholson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/cab0a1/32.png) [@jnicholson](https://www.ruby-forum.com/u/jnicholson)\
**Post date:** [September 1, 2007, 3:16pm UTC](https://www.ruby-forum.com/t/capistrano-windows-woes/113538/4 "2007-09-01T15:16:07Z")

</div>

Jim, by far the best approach.

[http://dev.swig505.com/2007/03/15/fedora-core-4-apache-mongrel-mysql-](http://dev.swig505.com/2007/03/15/fedora-core-4-apache-mongrel-mysql-)  
rails/

You may want to have a look around here; loads of really useful  
advice on setting up a rails stack and loads of links to folow;

[http://blog.codahale.com/2006/06/19/time-for-a-grown-up-server-rails-](http://blog.codahale.com/2006/06/19/time-for-a-grown-up-server-rails-)  
mongrel-apache-capistrano-and-you/

Not going to enter a distro preference tug-o-war but if you are new  
to linux it may be a good idea to look at ubuntu or debian just  
because there are so many people using rails on them and blogging  
about it so there are countless good examples to follow.

---

<div class="post-metadata">

**Author:** ![jnicholson](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/j/cab0a1/32.png) [@jnicholson](https://www.ruby-forum.com/u/jnicholson)\
**Post date:** [September 1, 2007, 3:45pm UTC](https://www.ruby-forum.com/t/capistrano-windows-woes/113538/5 "2007-09-01T15:45:10Z")

</div>

Looks like you’ve got your :repository variable set to  
svn://localhost. Note that (by default) capistrano will first query  
that repository locally (on your localhost) to determine the current  
revision, and will then query that repository on each remote server  
(to check out the code), and there is apparently no repository at  
svn://localhost on your remote servers.

You’ll either want to use a repository URL that is accessible by the  
remote servers, or try using the :copy deployment strategy (which only  
requires repository access on the local host):

set :deploy\_via, :copy

- Jamis
