From c75522d7cc00661ee01a6344e987c39d3a6a01e8 Mon Sep 17 00:00:00 2001 From: yumoqing Date: Thu, 23 Oct 2025 22:31:29 +0800 Subject: [PATCH] bugfix --- build.sh | 33 +++++++++++++++------------------ requirements.txt | 4 ---- 2 files changed, 15 insertions(+), 22 deletions(-) diff --git a/build.sh b/build.sh index f73e49c..cf53f13 100755 --- a/build.sh +++ b/build.sh @@ -7,49 +7,46 @@ gname=$(id -gn) sudo apt install redis-server python3 -m venv py3 source py3/bin/activate -$cdir/py3/bin/pip install -r requirements.txt +pip install -r requirements.txt mkdir pkgs cd pkgs git clone https://git.opencomputing.cn/yumoqing/bricks cd bricks/bricks ./build.sh -cd $dir/wwwroot -ln -s $dir/pkgs/bricks/dist $dir/wwwroot/bricks +cd $cdir/wwwroot +ln -s $cdir/pkgs/bricks/dist $dir/wwwroot/bricks for m in apppublic sqlor ahserver bricks-for-python xls2ddl do echo "install $m module..." - cd $dir + cd $cdir/pkgs git clone https://git.opencomputing.cn/yumoqing/$m - cd $dir/$m + cd $m $cdir/py3/bin/pip install . done -dir=$(pwd) for m in appbase rbac accounting llmage platformbiz msp cpcc pf_pay filemgr dapi uapi rag charge do echo "install $m module..." - cd $dir + cd $cdir/pkgs git clone https://git.opencomputing.cn/yumoqing/$m - cd $dir/$m + cd $m $cdir/py3/bin/pip install . - if [ -d $dir/$m/models ];then - cd $dir/$m/models + if [ -d $cdir/pkgs/$m/models ];then + cd $cdir/pkgs/$m/models xls2ddl mysql . > mysql.ddl.sql mysql -h db -utest -ptest123 sage < mysql.ddl.sql fi - if [ -d $dir/$m/json ];then - cd $dir/$m/json + if [ -d $cdir/pkgs/$m/json ];then + cd $cdir/pkgs/$m/json ./build.sh fi - if [ -d $dir/$m/data ]; then - cd $dir/$m/data - dbloader $dir sage data.xlsx + if [ -d $cdir/pkgs/$m/data ]; then + cd $cdir/pkgs/$m/data + dbloader $cdir sage data.xlsx fi rm $cdir/wwwroot/$m - ln -s $dir/$m/wwwroot $cdir/wwwroot/$m + ln -s $cdir/pkgs/$m/wwwroot $cdir/wwwroot/$m done mkdir $cdir/logs -rm $cdir/wwwroot/bricks -ln -s /d/public/bricks $cdir/wwwroot cd $cdir cat > $cdir/sage.service <