Compare commits

..

No commits in common. "e6c790fea3016865d2c00a91b8d6a44ba9873993" and "f3f2a86d653fdb475ecaf0e78b8c6d56702e07b6" have entirely different histories.

2 changed files with 10 additions and 13 deletions

View File

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

18
build.sh Executable file → Normal file
View File

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