Mercurial > code > home > repos > light9
annotate bin/homepage @ 2331:b09ff4b0094c
faders in pages now
author | drewp@bigasterisk.com |
---|---|
date | Fri, 02 Jun 2023 09:42:18 -0700 |
parents | e9dc435cc946 |
children | 5e4321405f54 |
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 | |
2249
e9dc435cc946
no proxy_buffering even on vitejs resource pages, since our working dir is non-writable
drewp@bigasterisk.com
parents:
2174
diff
changeset
|
22 proxy_buffering off; |
e9dc435cc946
no proxy_buffering even on vitejs resource pages, since our working dir is non-writable
drewp@bigasterisk.com
parents:
2174
diff
changeset
|
23 |
1212 | 24 server { |
1215 | 25 access_log off; |
1706
e30493d458f9
more npm setup. n3 upgraded but code is not, yet
drewp@bigasterisk.com
parents:
1521
diff
changeset
|
26 autoindex on; |
1212 | 27 |
1215 | 28 include "/tmp/light9_nginx_routes.conf"; |
1212 | 29 |
30 location / { | |
2033 | 31 proxy_pass http://localhost:8300; |
1706
e30493d458f9
more npm setup. n3 upgraded but code is not, yet
drewp@bigasterisk.com
parents:
1521
diff
changeset
|
32 } |
e30493d458f9
more npm setup. n3 upgraded but code is not, yet
drewp@bigasterisk.com
parents:
1521
diff
changeset
|
33 |
1212 | 34 } |
35 } | |
36 EOF | |
2063
1c772cb39908
got rdfdb to use local dev version, finally
drewp@bigasterisk.com
parents:
2037
diff
changeset
|
37 pnpm vite -c light9/homepage/vite.config.ts & |
2033 | 38 /usr/sbin/nginx -c $CONF |
39 wait |