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”]
Password:
[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”]
[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
On 9/1/07, Jim N. [email protected] 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 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
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?
Jim, by far the best approach.
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-
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.
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