Local SVN & Capistrano 2.0

Everything is working well in my svn repository. I am able to connect
to my server by using “cap deploy”, but receive this error message:

** [out] svn: Unable to open an ra_local session to URL
** svn: Unable to open repository ‘file:///Users/myusername/svn/
simpleblog2/trunk’

Any ideas how to work around this?

seanstewart wrote:

Everything is working well in my svn repository. I am able to connect
to my server by using “cap deploy”, but receive this error message:

** [out] svn: Unable to open an ra_local session to URL
** svn: Unable to open repository ‘file:///Users/myusername/svn/
simpleblog2/trunk’

Any ideas how to work around this?

You are using what looks like a local file path to specify the location
of the SVN repository.

When Capistrano deploys to a server it then opens a connection from that
server to the repository. Unless the repository is in a location
accessible from that server then the connection will fail.

I ended up running svnserve and connecting via that.

On 5/22/07, RJ [email protected] wrote:

You are using what looks like a local file path to specify the location
of the SVN repository.

When Capistrano deploys to a server it then opens a connection from that
server to the repository. Unless the repository is in a location
accessible from that server then the connection will fail.

I ended up running svnserve and connecting via that.

Alternatively, since you are using Capistrano 2.0 you could use the
‘copy’ deployment method. If you add

set :deploy_via, :copy

to your deploy.rb then Capistrano will checkout the sources locally,
tar them up and use sftp to copy them to the server.

~p

http://fiatdev.com/