diff --git a/README.md b/README.md index b7bd8c0..8115888 100644 --- a/README.md +++ b/README.md @@ -1,73 +1,32 @@ # 开元rag -## 安装 +## 克隆仓库 执行下面的命令 ``` -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 -git clone https://git.opencomputing.cn/yumoqing/kyrag +git clone https://git.opencomputing.cn/yumoqing/kyrag.git +``` +## 一键安装 +安装前检查当前用户是否有sudo权限 +``` cd kyrag -cdir=$(pwd) -uname=$(id -un) -gname=$(id -gn) -python3 -m venv py3 -source py3/bin/activate -pip install -r requirements.txt -for m in appbase rbac filemgr rag dapi -do - cd $dir/$m - pip install . - cd models - xls2ddl mysql . > mysql.ddl.sql - mysql -h db -utest -ptest123 kyrag < mysql.ddl.sql - cd ../json - ./build - ln -s $dir/$m/wwwroot $cdir/wwwroot/$m -done -cd $cdir -cat > $cdir/kyrag.service < $cdir/start.sh < $cdir/stop.sh <