Capistrano: Subversion asks for password

Problem:

When deploying a Ruby on Rails application using Capistrano and the command rake deploy, you get an error message similar to this:

** [out :: 192.168.0.200] Authentication realm: dev
** [out :: 192.168.0.200] Password for ‘hasse’:
** [out :: 192.168.0.200] subversion is asking for a password
** [out :: 192.168.0.200] Authentication realm: dev
** [out :: 192.168.0.200] Username:

Lösning:

Solution from: http://blog.codahale.com/2006/06/19/time-for-a-grown-up-server-rails-mongrel-apache-capistrano-and-you/:

This is a Capistrano gotcha. One needs to make sure the account can access the Subversion repository.
Log into the application server and check out the repository into a temp directory. For example:

$> cd ~/some/temp/dir
$> svn co http://mydomain.com/svn/repos/my_app