bugfix
This commit is contained in:
parent
f3f2a86d65
commit
2691ec15de
18
build.sh
Normal file → Executable file
18
build.sh
Normal file → Executable file
@ -1,28 +1,26 @@
|
|||||||
#!/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 models
|
cd $dir/$m/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 ../json
|
cd $dir/$m/json
|
||||||
./build
|
./build
|
||||||
ln -s $dir/$m/wwwroot $cdir/wwwroot/$m
|
ln -s $dir/$m/wwwroot $cdir/wwwroot/$m
|
||||||
done
|
done
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user