cointoss1973.bitbucket.org / thg / manual / 2.4 / _sources / serve.txt

Serve
=====

.. module:: serve.dialog
	:synopsis: Dialog used to start/stop the web server

.. figure:: figures/serve.png
	:alt: Web server dialog

The serve tool is a wrapper for Mercurial's built-in web server. Once
launched, a computer can connect to the http port and browse your
repositories, perform clone, pull, or even push operations if enabled.

Toolbar buttons:

	:guilabel:`Start`
		start the web server
	:guilabel:`Stop`
		stop the web server
	:guilabel:`Configure`
		Configure repository web style, description, and access policies

When the settings dialog is launched via the :guilabel:`Configure`
button, it is run in the context of the current repository.  Please
visit the Mercurial wiki for detailed descriptions of the various
web configurations.

In TortoiseHg 2.0, the serve tool natively supports collections of local
repositories.  Just drag them onto the web serve dialog while it is not
running, or add them by hand using the editing buttons.  The repository
collections can be saved and reloaded.

From command line
-----------------

The server tool can be started from command line ::

	thg serve [OPTION]...

	start stand-alone webserver

	options:

		--webdir-conf  name of the webdir config file

	use "thg -v help serve" to show global options

.. vim: noet ts=4
Tip: Filter by directory path e.g. /media app.js to search for public/media/app.js.
Tip: Use camelCasing e.g. ProjME to search for ProjectModifiedEvent.java.
Tip: Filter by extension type e.g. /repo .js to search for all .js files in the /repo directory.
Tip: Separate your search with spaces e.g. /ssh pom.xml to search for src/ssh/pom.xml.
Tip: Use ↑ and ↓ arrow keys to navigate and return to view the file.
Tip: You can also navigate files with Ctrl+j (next) and Ctrl+k (previous) and view the file with Ctrl+o.
Tip: You can also navigate files with Alt+j (next) and Alt+k (previous) and view the file with Alt+o.