Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

Seems like everyday I have to SSH into our SME server and issue a "hg serve" command so that we can push/pull from/to it. Is there anyway for the mercurial server to stay on? I dont even know whats turning it off as the actual server is always on.

share|improve this question
If you look in hg help serve you'll see that you should use a real web server to serve a repository for longer periods of time. – Martin Geisler Sep 12 '12 at 21:01
up vote 4 down vote accepted

It's probably a good idea to set up a more robust mechanism for serving your repositories.

Mercurial includes a nice little CGI (as well as WSGI, which is cleaner and faster) script that you can serve with a production-capable web server which provides both a web interface and an HTTPS endpoint for push/pull.

See here for the setup documentation.

share|improve this answer

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.