Compare commits

...

2 Commits

Author SHA1 Message Date
e6c790fea3 bugfix 2025-07-28 15:24:12 +08:00
2691ec15de bugfix 2025-07-28 15:22:17 +08:00
2 changed files with 13 additions and 10 deletions

View File

@ -6,7 +6,12 @@ from filemgr.init import load_filemgr
from rag.init import load_rag
from dapi.init import load_dapi
def get_module_dbname(m):
return 'kyrag'
def init():
env = ServerEnv()
env.get_module_dbname = get_module_dbname
load_appbase()
load_rbac()
load_filemgr()

18
build.sh Normal file → Executable file
View File

@ -1,28 +1,26 @@
#!/usr/bin/env bash
# clone from git@git.opencomputing.cn/yumoqing/kyrag
# git clone https://git.opencomputing.cn/yumoqing/kyrag
cd ..
dir=$(pwd)
git clone https://git.opencomputing.cn/yumoqing/appbase
git clone https://git.opencomputing.cn/yumoqing/rbac
git clone https://git.opencomputing.cn/yumoqing/filemgr
git clone https://git.opencomputing.cn/yumoqing/rag
git clone https://git.opencomputing.cn/yumoqing/dapi
cd kyrag
cdir=$(pwd)
uname=$(id -un)
gname=$(id -gn)
python3 -m venv py3
source py3/bin/activate
pip install -r requirements.txt
mkdir pkgs
cd pkgs
dir=$(pwd)
for m in appbase rbac filemgr rag dapi
do
echo "install $m module..."
cd $dir
git clone https://git.opencomputing.cn/yumoqing/$m
cd $dir/$m
pip install .
cd models
cd $dir/$m/models
xls2ddl mysql . > mysql.ddl.sql
mysql -h db -utest -ptest123 kyrag < mysql.ddl.sql
cd ../json
cd $dir/$m/json
./build
ln -s $dir/$m/wwwroot $cdir/wwwroot/$m
done