Differences between revisions 1 and 13 (spanning 12 versions)
Revision 1 as of 2005-08-28 08:46:57
Size: 756
Editor: mpm
Comment:
Revision 13 as of 2013-08-29 22:40:46
Size: 1088
Editor: rcl
Comment:
Deletions are marked like this. Additions are marked like this.
Line 1: Line 1:
<<Include(A:style)>>

<!> This is considered a [[FeaturesOfLastResort|feature of last resort]].
Line 16: Line 20:
$ hg clone old-http://example.com/my-project $ hg clone http://example.com/my-project
Line 18: Line 22:

Mercurial will automatically (since version 1.1) detect that it should use the static HTTP protocol. If you are stuck with an older version, then use {{{static-http://example.com/my-project}}} as the clone URL.
Line 22: Line 28:
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.

----
CategoryWeb

{i} This page does not meet our wiki style guidelines. Please help improve this page by cleaning up its formatting.

<!> This is considered a feature of last resort.

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 http://example.com/my-project

Mercurial will automatically (since version 1.1) detect that it should use the static HTTP protocol. If you are stuck with an older version, then use static-http://example.com/my-project as the clone URL.

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 CGI-based server instead.


CategoryWeb

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