Mercurial > code > home > repos > light9
annotate 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 |
rev | line source |
---|---|
1212 | 1 #!/bin/zsh |
2 | |
3 CONF=/tmp/light9_nginx.conf | |
4 ROOT=`dirname $0`/.. | |
5 ROOT=${ROOT:a} | |
6 | |
2174
891c380afcc1
move py code under light9, add import test
drewp@bigasterisk.com
parents:
2063
diff
changeset
|
7 bin/python light9/homepage/write_config.py /tmp/light9_nginx_routes.conf && \ |
1212 | 8 cat > $CONF <<EOF |
9 worker_processes 1; | |
10 | |
11 daemon off; | |
12 error_log /tmp/light9_homepage.err; | |
13 pid /dev/null; | |
14 | |
15 events { | |
16 worker_connections 1024; | |
17 } | |
18 | |
19 http { | |
20 include $ROOT/light9/web/mime.types; | |
21 | |
22 server { | |
1215 | 23 access_log off; |
1706
e30493d458f9
more npm setup. n3 upgraded but code is not, yet
drewp@bigasterisk.com
parents:
1521
diff
changeset
|
24 autoindex on; |
1212 | 25 |
1215 | 26 include "/tmp/light9_nginx_routes.conf"; |
1212 | 27 |
28 location / { | |
2033 | 29 proxy_pass http://localhost:8300; |
1706
e30493d458f9
more npm setup. n3 upgraded but code is not, yet
drewp@bigasterisk.com
parents:
1521
diff
changeset
|
30 } |
e30493d458f9
more npm setup. n3 upgraded but code is not, yet
drewp@bigasterisk.com
parents:
1521
diff
changeset
|
31 |
1212 | 32 } |
33 } | |
34 EOF | |
2063
1c772cb39908
got rdfdb to use local dev version, finally
drewp@bigasterisk.com
parents:
2037
diff
changeset
|
35 pnpm vite -c light9/homepage/vite.config.ts & |
2033 | 36 /usr/sbin/nginx -c $CONF |
37 wait |