# Cap2 different path to repos

**URL:** <https://www.ruby-forum.com/t/cap2-different-path-to-repos/111328>\
**Category:** Deployment\
**Created:** [August 6, 2007, 3:47am UTC](https://www.ruby-forum.com/t/cap2-different-path-to-repos/111328 "2007-08-06T03:47:13Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![dxk3355](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/d6d6ee/32.png) [@dxk3355](https://www.ruby-forum.com/u/dxk3355)\
**Post date:** [August 6, 2007, 3:47am UTC](https://www.ruby-forum.com/t/cap2-different-path-to-repos/111328/1 "2007-08-06T03:47:13Z")

</div>

Hi!

I read somewhere that in Cap2 you can set different URLs to repository  
from local machine and remote server. Haven’t found out how to do it  
yet, but I will…

I’m curious about something: why does Capistrano have to access the  
repository from the local machine at all? I’m sure it’s something  
obvious but I cannot see it yet. Can someone clarify?

thank you!  
david

---

<div class="post-metadata">

**Author:** ![dxk3355](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/d6d6ee/32.png) [@dxk3355](https://www.ruby-forum.com/u/dxk3355)\
**Post date:** [August 6, 2007, 4:10am UTC](https://www.ruby-forum.com/t/cap2-different-path-to-repos/111328/2 "2007-08-06T04:10:50Z")

</div>

hmm - of course… to send the changes in my working copy to the  
servers… I tried to change something then saying “cap deploy” and it  
didn’t send the changes over. Then I tried “cap deploy:update\_code” and  
still nothing… please help me understand those basics.

Thank you!  
David

D. Krmpotic wrote:

> Hi!
> 
> I read somewhere that in Cap2 you can set different URLs to repository  
> from local machine and remote server. Haven’t found out how to do it  
> yet, but I will…
> 
> I’m curious about something: why does Capistrano have to access the  
> repository from the local machine at all? I’m sure it’s something  
> obvious but I cannot see it yet. Can someone clarify?
> 
> thank you!  
> david

---

<div class="post-metadata">

**Author:** ![dxk3355](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/d/d6d6ee/32.png) [@dxk3355](https://www.ruby-forum.com/u/dxk3355)\
**Post date:** [August 6, 2007, 10:47pm UTC](https://www.ruby-forum.com/t/cap2-different-path-to-repos/111328/3 "2007-08-06T22:47:30Z")

</div>

D. Krmpotic wrote:

> hmm - of course… to send the changes in my working copy to the  
> servers…

not really… it’s something else… to ask it for the latest revision or  
something… I don’t quite understand…

I tried to change something then saying “cap deploy” and it

> didn’t send the changes over. Then I tried “cap deploy:update\_code” and  
> still nothing… please help me understand those basics.

I found out that you have to manually do “svn commit”… that makes  
sense…

for those interested in how to make different local and remote  
repository paths, here is the explanation:

[http://johnleach.co.uk/words/archives/2007/06/17/268/](http://johnleach.co.uk/words/archives/2007/06/17/268/)

ok… I enjoyed this little monologue 🙂 but still… if someone feels  
like adding something to this, be my guest!

david
