[svn.haxx.se] · SVN Dev · SVN Users · SVN Org · TSVN Dev · TSVN Users · Subclipse Dev · Subclipse Users · this month's index

Re: How to have 2 servers in the same machine?

From: Lutz Dornbusch <subversion_at_pdfzone.de>
Date: 2007-07-13 13:58:35 CEST

javijava wrote:
> if i do a svnserve -d --listen-port=PORT
> or svnserve -d --root=c:\repo
>
> I have the first repository associated with localhost
>
> But i want have a second repository in the same machine... and I don't know
> how!

I am not sure to understand you correctly, but you can create two or
more repositories in
c:\repo
eg:
svnadmin create c:\repo\1st_repos
svnadmin create c:\repo\2nd_repos

with
svnserve -d --root=c:\repo

you can access both of your repos with

svn://localhost/1st_repo
svn://localhost/2nd_repo

If you want the second repository on a different server process(as your
subject describes)
you have to do this:

mkdir c:\server_1
svnadmin create c:\server_1\1st_repos
mkdir c:\server_2
svnadmin create c:\server_2\2nd_repos
svnserve -d --root=c:\server_1
svnserve -d --listen-port 4711 --root=c:\server_2 [-->on a second
command shell]

now you can access via
svn://localhost/1st_repo
svn://localhost:4711/2nd_repo

your both repositories on your server

Greetings,
Lutz

---------------------------------------------------------------------
To unsubscribe, e-mail: users-unsubscribe@subversion.tigris.org
For additional commands, e-mail: users-help@subversion.tigris.org
Received on Fri Jul 13 13:58:51 2007

This is an archived mail posted to the Subversion Users mailing list.

This site is subject to the Apache Privacy Policy and the Apache Public Forum Archive Policy.