Mercurial Hosting > hghosting
diff start.sh @ 0:dfc36e7ed22c
init
author | Vadim Filimonov <fffilimonov@yandex.ru> |
---|---|
date | Thu, 12 May 2022 13:51:59 +0400 |
parents | |
children | a90e510ccc4f |
line wrap: on
line diff
--- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/start.sh Thu May 12 13:51:59 2022 +0400 @@ -0,0 +1,13 @@ +#!/bin/bash -e + +. common.sh; + +/usr/local/bin/hg serve -d -A ${hgaccesslog} -p 8090 -a 127.0.0.1 -t ${templatesdir} --pid-file ${hgservepid} --encoding utf8 --webdir-conf ${webconfig}; + +sudo /usr/local/bin/nginx -c ${nginxonfig}; + +if [ "$1" == "launchd" ]; then + ${ROOTPWD}/luan.sh serve.luan $* &2>${servelog} +else + ${ROOTPWD}/luan.sh serve.luan $* &2>${servelog}& +fi; \ No newline at end of file