| 1 |
.TH HG SERVE "" "" "" |
| 2 |
.SH NAME |
| 3 |
hg serve \- start stand-alone webserver |
| 4 |
.\" Man page generated from reStructuredText. |
| 5 |
. |
| 6 |
.SH SYNOPSIS |
| 7 |
.sp |
| 8 |
.nf |
| 9 |
.ft C |
| 10 |
hg serve [OPTION]... |
| 11 |
.ft P |
| 12 |
.fi |
| 13 |
.SH DESCRIPTION |
| 14 |
.sp |
| 15 |
Start a local HTTP repository browser and pull server. You can use |
| 16 |
this for ad\-hoc sharing and browsing of repositories. It is |
| 17 |
recommended to use a real web server to serve a repository for |
| 18 |
longer periods of time. |
| 19 |
.sp |
| 20 |
Please note that the server does not implement access control. |
| 21 |
This means that, by default, anybody can read from the server and |
| 22 |
nobody can write to it by default. Set the \fBweb.allow\-push\fP |
| 23 |
option to \fB*\fP to allow everybody to push to the server. You |
| 24 |
should use a real web server if you need to authenticate users. |
| 25 |
.sp |
| 26 |
By default, the server logs accesses to stdout and errors to |
| 27 |
stderr. Use the \-A/\-\-accesslog and \-E/\-\-errorlog options to log to |
| 28 |
files. |
| 29 |
.sp |
| 30 |
To have the server choose a free port number to listen on, specify |
| 31 |
a port number of 0; in this case, the server will print the port |
| 32 |
number it uses. |
| 33 |
.sp |
| 34 |
Returns 0 on success. |
| 35 |
.SH OPTIONS |
| 36 |
.INDENT 0.0 |
| 37 |
.TP |
| 38 |
.BI \-A, \-\-accesslog \ <FILE> |
| 39 |
. |
| 40 |
name of access log file to write to |
| 41 |
.TP |
| 42 |
.B \-d, \-\-daemon |
| 43 |
. |
| 44 |
run server in background |
| 45 |
.TP |
| 46 |
.BI \-\-daemon\-postexec \ <VALUE[+]> |
| 47 |
. |
| 48 |
used internally by daemon mode |
| 49 |
.TP |
| 50 |
.BI \-E, \-\-errorlog \ <FILE> |
| 51 |
. |
| 52 |
name of error log file to write to |
| 53 |
.TP |
| 54 |
.BI \-p, \-\-port \ <PORT> |
| 55 |
. |
| 56 |
port to listen on (default: 8000) |
| 57 |
.TP |
| 58 |
.BI \-a, \-\-address \ <ADDR> |
| 59 |
. |
| 60 |
address to listen on (default: all interfaces) |
| 61 |
.TP |
| 62 |
.BI \-\-prefix \ <PREFIX> |
| 63 |
. |
| 64 |
prefix path to serve from (default: server root) |
| 65 |
.TP |
| 66 |
.BI \-n, \-\-name \ <NAME> |
| 67 |
. |
| 68 |
name to show in web pages (default: working directory) |
| 69 |
.TP |
| 70 |
.BI \-\-web\-conf \ <FILE> |
| 71 |
. |
| 72 |
name of the hgweb config file (see \(aqhg help hgweb\(aq) |
| 73 |
.TP |
| 74 |
.BI \-\-webdir\-conf \ <FILE> |
| 75 |
. |
| 76 |
name of the hgweb config file (DEPRECATED) |
| 77 |
.TP |
| 78 |
.BI \-\-pid\-file \ <FILE> |
| 79 |
. |
| 80 |
name of file to write process ID to |
| 81 |
.TP |
| 82 |
.B \-\-stdio |
| 83 |
. |
| 84 |
for remote clients (ADVANCED) |
| 85 |
.TP |
| 86 |
.BI \-\-cmdserver \ <MODE> |
| 87 |
. |
| 88 |
for remote clients (ADVANCED) |
| 89 |
.TP |
| 90 |
.BI \-t, \-\-templates \ <TEMPLATE> |
| 91 |
. |
| 92 |
web templates to use |
| 93 |
.TP |
| 94 |
.BI \-\-style \ <STYLE> |
| 95 |
. |
| 96 |
template style to use |
| 97 |
.TP |
| 98 |
.B \-6, \-\-ipv6 |
| 99 |
. |
| 100 |
use IPv6 instead of IPv4 |
| 101 |
.TP |
| 102 |
.BI \-\-certificate \ <FILE> |
| 103 |
. |
| 104 |
SSL certificate file |
| 105 |
.TP |
| 106 |
.B \-\-print\-url |
| 107 |
. |
| 108 |
start and print only the URL |
| 109 |
.TP |
| 110 |
.B \-S, \-\-subrepos |
| 111 |
. |
| 112 |
recurse into subrepositories |
| 113 |
.UNINDENT |
| 114 |
.sp |
| 115 |
[+] marked option can be specified multiple times |
| 116 |
.\" Generated by docutils manpage writer. |
| 117 |
.\" |
| 118 |
. |