feat: 添加自动部署脚本
This commit is contained in:
@@ -34,6 +34,18 @@ modules(){
|
|||||||
docker-compose up -d wfc-nginx wfc-gateway wfc-auth wfc-modules-system
|
docker-compose up -d wfc-nginx wfc-gateway wfc-auth wfc-modules-system
|
||||||
}
|
}
|
||||||
|
|
||||||
|
# 启动程序模块(后端)
|
||||||
|
backend(){
|
||||||
|
docker-compose up --build -d wfc-gateway wfc-auth wfc-modules-system
|
||||||
|
docker image prune
|
||||||
|
}
|
||||||
|
|
||||||
|
# 启动程序模块(前端)
|
||||||
|
frontend(){
|
||||||
|
docker-compose up --build -d wfc-gateway wfc-auth wfc-modules-system
|
||||||
|
docker image prune
|
||||||
|
}
|
||||||
|
|
||||||
# 关闭所有环境/模块
|
# 关闭所有环境/模块
|
||||||
stop(){
|
stop(){
|
||||||
docker-compose stop
|
docker-compose stop
|
||||||
|
|||||||
8
docker/start-backend.sh
Normal file
8
docker/start-backend.sh
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
cd ..
|
||||||
|
git pull
|
||||||
|
mvn clean package -P test
|
||||||
|
cd docker
|
||||||
|
./copy.sh
|
||||||
|
sudo ./deploy.sh backend
|
||||||
8
docker/start-frontend.sh
Normal file
8
docker/start-frontend.sh
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
|
||||||
|
cd ../../fe.crm/
|
||||||
|
git pull
|
||||||
|
pnpm build
|
||||||
|
cd ../be.crm/docker/
|
||||||
|
./copy.sh
|
||||||
|
sudo ./deploy.sh backend
|
||||||
Reference in New Issue
Block a user