Jason Dagit <[EMAIL PROTECTED]> wrote:

>   I configured a remote host to be my /central/ repository. I can
>   push and pull to/from it via SSH as described on darcs' wiki.
> 
>   Now I am wondering how I can tell people to pull/get from my
>   darcs repos via http.
> 
>   Is 'darcs get http://myhost.tld/repo' the way to go ?
> 
> I share my darcs repositories with the world by putting them in a
> directory on a remote server that people can browse to.  It's just a world
> readable directory in my apache configuration.  Darcs doesn't have a
> server component, so when you locally run a 'darcs get http://...' command
> darcs asks the webserver for some files which reside in
> http://myserver/myrepository/_darcs.  If it finds the files there it
> downloads them and any patches that are needed locally.

Thank you for your explanations. It's crystal clear !
 
> If you want to improve the performance and reduce network bandwith you can
> enable a global cache.  This also requires that the remote repository use
> the hashed repository format (which you want to use anyway for other
> reasons).

I will probably do this as soon as the size will turn to be a
problem :) Currentyl that's not the case.
 
> I found that it was handy to use apache directives so that in my home dir
> I have a directory called public_repos where I place my darcs
> repositories.  That's exactly the directory you see when you browse to
> this url:
> http://projects.codersbase.com/repos

I will have to investigate this option too. Currently I darcs
init on the remote host and then pull from it locally on my
machine so I can start hacking. Dunno if it is considered to be a
"best practice" but that's the sole way I have found.
  
> I hope that helps,

You did !

Thank you.

Xavier
_______________________________________________
darcs-users mailing list
[email protected]
http://lists.osuosl.org/mailman/listinfo/darcs-users

Reply via email to