Forum: Ruby on Rails Capistrano recipe help - dual svn repository paths

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
401dc14a53d48a8d128b2b095d0ed4d4?d=identicon&s=25 Jon Evans (Guest)
on 2007-01-07 19:34
(Received via mailing list)
Hi,

Is there any way to set up two different svn repository paths, if the
svn server is accessed in different ways on the client and server
machine?

I'm deploying to DreamHost, and the svn repository is in my DH home
directory, as well as being accessible over http. When logged into DH,
there is a massive difference in performance between accessing a local
repository and accessing it via http. svn ls file:///path/to/repository
is about 6 times faster than svn ls http://server/repos/path.

I'd use the file:// path in my deploy.rb, but that breaks the
latest_revision command that the client runs before deploy.

"cap deploy" takes nearly 10 minutes using an http:// repository
path...

Jon
A283b2a22f363872752e1219a8eca846?d=identicon&s=25 Michael (Guest)
on 2007-01-07 20:39
(Received via mailing list)
Jon Evans wrote:
> is about 6 times faster than svn ls http://server/repos/path.
I don't know if this would work, but you can try it. In your deploy.rb
add:

task :after_latest_revision do
  set :repository, 'file://wherever_it_lives_local'
end
Aa8a811205e47df967a2f27ad98fd6a8?d=identicon&s=25 Jim Morris (Guest)
on 2007-01-08 05:38
(Received via mailing list)
Jon Evans wrote:
>
> Hi,
>
> Is there any way to set up two different svn repository paths, if the
> svn server is accessed in different ways on the client and server
> machine?
>
>

I have released a new subversion scm module that handles this case, the
details are here...

http://blog.wolfman.com/articles/2006/12/06/a-capi...

read the second half which deals with your use case, the first half
deals with local access to svn only.

--
Jim Morris, http://blog.wolfman.com
This topic is locked and can not be replied to.