view start.sh @ 30:66ddf3654046

nginx access log debug conf
author Violet7
date Tue, 19 May 2026 02:10:59 -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;