view start.sh @ 32:4930c7b51ac7 default tip

revert
author Violet7
date Tue, 19 May 2026 02:45:21 -0700
parents 5f3e2121ce2c
children
line wrap: on
line source

#!/bin/bash

. 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 $* &>${servelog}
else
    ${ROOTPWD}/luan.sh serve.luan $* &>${servelog}&
fi;