Hg serve as windows service

Sune Foldager cryo at cyanite.org
Fri Mar 5 04:10:48 CST 2010


On 03-03-2010 17:44, Andrea Ricossa wrote:
> Hi,
> First of all congratulations for hg, it's a great software.
>
> I'm a hg newbie and after installing hg on my development machine I
> tried to install it on a server.
>
> Running hg serve in a command window is not the best choice for services
> running on windows environment, as far as I know the best choice is to
> run it as a windows service
> Unfortunately I've not found any information or documentation or sources.
> Anyway I developed a windows service wrapper to run hg serve and if you
> are interested in I can share it.

While running as a service may work ok, the best idea for a server is 
probably to host Mercurial in IIS or Apache. Currently, using CGI can be 
done nicely with the binary builds for Windows, while using wsgi (with 
IIS) requires to install it from source (through Python).

/Sune


More information about the Mercurial-devel mailing list