Mercurial > dotfiles
changeset 41:ef5c69032d20
Multi-hg serving code I seem to use often.
author | Augie Fackler <durin42@gmail.com> |
---|---|
date | Thu, 05 Feb 2009 23:43:28 -0600 |
parents | 94604a37503a |
children | f0f437b22cea |
files | .hgignore unixSoft/bin/servehg.sh |
diffstat | 2 files changed, 7 insertions(+), 0 deletions(-) [+] |
line wrap: on
line diff
--- a/.hgignore +++ b/.hgignore @@ -1,4 +1,6 @@ syntax:glob +hgwebdir.conf +*.pid *.pyc .*history .BitTornado
new file mode 100755 --- /dev/null +++ b/unixSoft/bin/servehg.sh @@ -0,0 +1,5 @@ +#!/bin/sh +PID_PATH=$HOME/unixSoft/hg.pid +kill `cat $PID_PATH ` +sleep 1 +hg serve --prefix /hg/ --webdir-conf $HOME/unixSoft/etc/hgwebdir.conf -p 9000 --pid-file $PID_PATH --style monoblue -d --config web.contact=- --config web.description=-