On Wed, Aug 6, 2008 at 3:26 PM, Xavier Maillard <[EMAIL PROTECTED]> wrote:
> Hi, > > I am fairly new with darcs. > > 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. 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). You can find the details of global cache in the user manual here: http://darcs.net/manual/node5.html It takes about 2 seconds to setup the cache. You just have to tell darcs where to store the cached data. 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 So that way when I want to share a new repository with the world I just run a local darcs put into that directory and I'm good to go. In fact, it's so easy I probably share more stuff that I need to :) I hope that helps, Jason
_______________________________________________ darcs-users mailing list [email protected] http://lists.osuosl.org/mailman/listinfo/darcs-users
