I’ve recently been attempting to deploy my application (using Apache,
Mongrel and Capistrano on a Ubuntu box) and have hit a problem trying to
set :repository in deploy.rb. (I have been following chapter 27 in AWDwR
v2, and various online resources.)
The structure on the server is as follows:
- rails app in /home/tim/rails/test_project
- subversion repository in /home/tim/svn/test_project/trunk
My deploy.rb has the following lines
set :application, “test_project”
set :user, “tim”
set :repository,
“http://#{user}@[subdomain].[domain]/home/#{user}/svn/#{application}/trunk”
set :deploy_to, “/home/#{user}/rails/#{application}”
set :mongrel_conf, “config/mongrel_cluster.yml”
When I run rake remote:cold_deploy I get
– snip –
- querying latest revision…
svn: PROPFIND request failed on ‘/’
svn: PROPFIND of ‘/’: 405 Method Not Allowed
(http://ctru.sheffield.ac.uk)
– end snip –
I’ve also tried changing the :repository value to
“svn://#{user}@[subdomain].[domain]/home/#{user}/svn/#{application}/trunk”
but get this error instead:
– snip –
svn: Can’t connect to host ‘ctru.sheffield.ac.uk’: No connection could
be made b
ecause the target machine actively refused it.
– end snip –
Does anyone have any idea where I’m going wrong? I’m new to Capistrano
(and also Subversion) so I’ve probably done something silly somewhere.
Thank you.