annotate start.sh @ 10:a7187a447835

restrict repo names
author Franklin Schmidt <fschmidt@gmail.com>
date Tue, 12 Jul 2022 19:40:50 -0600
parents dfc36e7ed22c
children a90e510ccc4f
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
rev   line source
0
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
1 #!/bin/bash -e
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
2
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
3 . common.sh;
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
4
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
5 /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};
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
6
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
7 sudo /usr/local/bin/nginx -c ${nginxonfig};
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
8
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
9 if [ "$1" == "launchd" ]; then
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
10 ${ROOTPWD}/luan.sh serve.luan $* &2>${servelog}
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
11 else
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
12 ${ROOTPWD}/luan.sh serve.luan $* &2>${servelog}&
Vadim Filimonov <fffilimonov@yandex.ru>
parents:
diff changeset
13 fi;