2
0

fix: 调整脚本

This commit is contained in:
caiyuchao
2024-11-18 20:45:30 +08:00
parent ebb68bc8b7
commit 69779e746c
3 changed files with 18 additions and 7 deletions

View File

@@ -36,14 +36,12 @@ modules(){
# 启动程序模块(后端)
backend(){
docker-compose up --build -d wfc-gateway wfc-auth wfc-modules-system
docker image prune
docker-compose up -d wfc-gateway wfc-auth wfc-modules-system
}
# 启动程序模块(前端)
frontend(){
docker-compose up --build -d wfc-nginx
docker image prune
docker-compose up -d wfc-nginx
}
# 关闭所有环境/模块
@@ -68,10 +66,10 @@ case "$1" in
modules
;;
"backend")
modules
backend
;;
"frontend")
modules
frontend
;;
"stop")
stop

View File

@@ -5,4 +5,14 @@ git pull
mvn clean package -P test
cd docker
./copy.sh
sudo docker stop wfc-gateway
sudo docker rm wfc-gateway
sudo docker rmi docker_wfc-gateway
sudo docker stop wfc-auth
sudo docker rm wfc-auth
sudo docker rmi docker_wfc-auth
sudo docker stop wfc-modules-system
sudo docker rm wfc-modules-system
sudo docker rmi docker_wfc-modules-system
sudo ./deploy.sh backend
sudo docker restart wfc-modules-system

View File

@@ -5,4 +5,7 @@ git pull
pnpm build
cd ../be.crm/docker/
./copy.sh
sudo docker stop wfc-ngnix
sudo docker rm wfc-ngnix
sudo docker rmi ngnix
sudo ./deploy.sh backend