What does hgweb do that hg serve does not?
Augie Fackler
raf at durin42.com
Mon Mar 16 02:24:20 UTC 2020
> On Mar 15, 2020, at 6:35 AM, Ansis Māliņš <ansis.malins at gmail.com> wrote:
>
> I’m having trouble understanding the added value of the hgweb script. It’s just a couple lines of Python and needs a WSGI server, while hg serve can be put directly behind an Nginx. What price am I paying for using hg serve rather than hgweb?
`hg serve` actually uses the primitive, single-threaded (IIRC) WSGI server that comes with Python. You’ll hit scaling limits fairly quickly with `hg serve`, and it’s not much more overhead to put a CGI->WSGI adapter around it for nginx, or use something like gunicorn or uwsgi in place of `hg serve` and get better performance and scaling properties.
>
> For context, I’m looking to serve a handful private of repositories for several dozen people from a low end VPS on the Internet. Lots of largefiles. It’s a video game hobby project.
> _______________________________________________
> Mercurial mailing list
> Mercurial at mercurial-scm.org
> https://www.mercurial-scm.org/mailman/listinfo/mercurial
More information about the Mercurial
mailing list