Mercurial > code > home > repos > light9
comparison bin/homepage @ 2174:891c380afcc1
move py code under light9, add import test
author | drewp@bigasterisk.com |
---|---|
date | Fri, 19 May 2023 13:59:07 -0700 |
parents | 1c772cb39908 |
children | e9dc435cc946 |
comparison
equal
deleted
inserted
replaced
2173:f239dedb025a | 2174:891c380afcc1 |
---|---|
2 | 2 |
3 CONF=/tmp/light9_nginx.conf | 3 CONF=/tmp/light9_nginx.conf |
4 ROOT=`dirname $0`/.. | 4 ROOT=`dirname $0`/.. |
5 ROOT=${ROOT:a} | 5 ROOT=${ROOT:a} |
6 | 6 |
7 bin/homepageConfig > /tmp/light9_nginx_routes.conf && \ | 7 bin/python light9/homepage/write_config.py /tmp/light9_nginx_routes.conf && \ |
8 cat > $CONF <<EOF | 8 cat > $CONF <<EOF |
9 worker_processes 1; | 9 worker_processes 1; |
10 | 10 |
11 daemon off; | 11 daemon off; |
12 error_log /tmp/light9_homepage.err; | 12 error_log /tmp/light9_homepage.err; |
30 } | 30 } |
31 | 31 |
32 } | 32 } |
33 } | 33 } |
34 EOF | 34 EOF |
35 head -1 /tmp/light9_nginx_routes.conf | |
36 pnpm vite -c light9/homepage/vite.config.ts & | 35 pnpm vite -c light9/homepage/vite.config.ts & |
37 /usr/sbin/nginx -c $CONF | 36 /usr/sbin/nginx -c $CONF |
38 wait | 37 wait |