diff 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
line wrap: on
line diff
--- a/bin/homepage	Fri May 19 13:46:08 2023 -0700
+++ b/bin/homepage	Fri May 19 13:59:07 2023 -0700
@@ -4,7 +4,7 @@
 ROOT=`dirname $0`/..
 ROOT=${ROOT:a}
 
-bin/homepageConfig > /tmp/light9_nginx_routes.conf && \
+bin/python light9/homepage/write_config.py /tmp/light9_nginx_routes.conf && \
 cat > $CONF <<EOF
 worker_processes 1;
 
@@ -32,7 +32,6 @@
  }
 }
 EOF
-head -1 /tmp/light9_nginx_routes.conf
 pnpm vite -c light9/homepage/vite.config.ts &
 /usr/sbin/nginx -c $CONF
 wait