# Local SVN & Capistrano 2.0

**URL:** <https://www.ruby-forum.com/t/local-svn-capistrano-2-0/104754>\
**Category:** Deployment\
**Created:** [May 22, 2007, 5:06am UTC](https://www.ruby-forum.com/t/local-svn-capistrano-2-0/104754 "2007-05-22T05:06:30Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![df-sean](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f07891/32.png) [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Post date:** [May 22, 2007, 5:06am UTC](https://www.ruby-forum.com/t/local-svn-capistrano-2-0/104754/1 "2007-05-22T05:06:30Z")

</div>

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?

---

<div class="post-metadata">

**Author:** ![df-sean](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f07891/32.png) [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Post date:** [May 22, 2007, 5:14am UTC](https://www.ruby-forum.com/t/local-svn-capistrano-2-0/104754/2 "2007-05-22T05:14:51Z")

</div>

Capistrano assumes that your production server can access your svn  
repository…

On 5/22/07, Sean S. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid) wrote:

> –  
> Posted via [http://www.ruby-forum.com/](http://www.ruby-forum.com/).
> 
> >

–  
Jeff X.  
Software Journeyman - [http://gigix.thoughtworkers.org](http://gigix.thoughtworkers.org)  
Open Source Contributor - [http://rubyworks.rubyforge.org](http://rubyworks.rubyforge.org)  
Technical Evangelist - [http://www.infoq.com/cn/](http://www.infoq.com/cn/)

---

<div class="post-metadata">

**Author:** ![df-sean](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/f07891/32.png) [@df-sean](https://www.ruby-forum.com/u/df-sean)\
**Post date:** [May 22, 2007, 7:15am UTC](https://www.ruby-forum.com/t/local-svn-capistrano-2-0/104754/3 "2007-05-22T07:15:59Z")

</div>

2007/5/22, Jeff X. [removed\_email\_address@domain.invalid](mailto:removed_email_address@domain.invalid):

> Capistrano assumes that your production server can access your svn repository…

hmm, not exactly, he refers to Capistrano 2.0 which (see  
[http://www.capify.org/upgrade/whats-new](http://www.capify.org/upgrade/whats-new) ) should be able to use  
methods of deploy alternative to svn checkout on the production  
server.

To the OP, if you don’t want to use the svn checkout you need to  
specify a :deploy\_via option:

# checkout locally, then tar and gzip the copy

# and sftp it to the remote servers

set :deploy\_via, :copy

(But I may have not uderstood the situation),

bye  
Luca
