view start.sh @ 31:b688b17bbe6b

more nginx conf
author Violet7
date Tue, 19 May 2026 02:41:27 -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;