Differences between revisions 3 and 4
Revision 3 as of 2008-03-27 12:52:03
Size: 780
Editor: abuehl
Comment: +cat
Revision 4 as of 2009-02-15 01:51:00
Size: 779
Editor: AfrizaArief
Comment: fix a broken link
Deletions are marked like this. Additions are marked like this.
Line 22: Line 22:
If at all possible, you should use a [:CGI_Install:CGI-based server] instead. If at all possible, you should use a [:CGIinstall:CGI-based server] instead.

Mercurial has limited support for serving from web servers with no CGI support.

To use, simply copy your project's repository files to a project directory on your server:

$ cd public_html
$ mkdir my-project
$ cp -a ../my-repo/.hg my-project

Alternately use a symlink. Copying can be accomplished via rsync, ftp, scp, etc., so long as all the files beneath .hg are copied.

Then you should be able to pull from this repo like so:

$ hg clone static-http://example.com/my-project

This is not recommended for most projects because it can result in a very large number of requests. Note that the web server must support HTTP range requests.

If at all possible, you should use a [:CGIinstall:CGI-based server] instead.


CategoryWeb

StaticHTTP (last edited 2013-08-29 22:40:46 by rcl)