update shell to deploy
This commit is contained in:
22
.gitattributes
vendored
22
.gitattributes
vendored
@@ -1,10 +1,12 @@
|
|||||||
* text=auto
|
* text=auto
|
||||||
*.sh eol=lf
|
*.sh text eol=lf
|
||||||
*.md eol=lf
|
*.md text eol=lf
|
||||||
*.yaml eol=lf
|
*.yaml text eol=lf
|
||||||
*.yml eol=lf
|
*.yml text eol=lf
|
||||||
*.sql eol=lf
|
*.sql text eol=lf
|
||||||
*.txt eol=lf
|
*.txt text eol=lf
|
||||||
*.conf eol=lf
|
*.conf text eol=lf
|
||||||
*.xml eol=lf
|
*.xml text eol=lf
|
||||||
*.bat eol=crlf
|
*.bat text eol=crlf
|
||||||
|
*.png binary
|
||||||
|
*.jpg binary
|
||||||
@@ -41,12 +41,12 @@ exit /b 0
|
|||||||
|
|
||||||
REM 启动程序模块(必须)
|
REM 启动程序模块(必须)
|
||||||
:modules
|
:modules
|
||||||
docker-compose up -d wfc-nginx wfc-gateway wfc-auth wfc-modules-file wfc-modules-job wfc-modules-gen wfc-modules-system wfc-modules-user wfc-modules-payment
|
docker-compose up -d wfc-nginx wfc-gateway wfc-auth wfc-modules-system wfc-modules-user wfc-modules-payment
|
||||||
exit /b 0
|
exit /b 0
|
||||||
|
|
||||||
REM 启动程序模块(后端)
|
REM 启动程序模块(后端)
|
||||||
:backend
|
:backend
|
||||||
docker-compose up -d wfc-gateway wfc-auth wfc-modules-file wfc-modules-job wfc-modules-gen wfc-modules-system wfc-modules-user wfc-modules-payment
|
docker-compose up -d wfc-gateway wfc-auth wfc-modules-system wfc-modules-user wfc-modules-payment wfc-modules-job wfc-modules-file wfc-modules-gen
|
||||||
exit /b 0
|
exit /b 0
|
||||||
|
|
||||||
REM 启动程序模块(前端)
|
REM 启动程序模块(前端)
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
# 使用说明,用来提示输入参数
|
# 使用说明,用来提示输入参数
|
||||||
usage() {
|
usage() {
|
||||||
echo "Usage: sh 执行脚本.sh [port|base|modules|stop|rm]"
|
echo "Usage: sh deploy.sh [port|base|modules|stop|rm]"
|
||||||
exit 1
|
exit 1
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -36,7 +36,7 @@ modules(){
|
|||||||
|
|
||||||
# 启动程序模块(后端)
|
# 启动程序模块(后端)
|
||||||
backend(){
|
backend(){
|
||||||
docker-compose up -d wfc-gateway wfc-auth wfc-modules-system wfc-modules-user wfc-modules-payment
|
docker-compose up -d wfc-gateway wfc-auth wfc-modules-system wfc-modules-user wfc-modules-payment wfc-modules-job wfc-modules-file wfc-modules-gen
|
||||||
}
|
}
|
||||||
|
|
||||||
# 启动程序模块(前端)
|
# 启动程序模块(前端)
|
||||||
|
|||||||
@@ -6,6 +6,7 @@ services:
|
|||||||
context: ./nacos
|
context: ./nacos
|
||||||
environment:
|
environment:
|
||||||
- MODE=standalone
|
- MODE=standalone
|
||||||
|
- NACOS_SERVER_ADDR=192.168.13.128
|
||||||
volumes:
|
volumes:
|
||||||
- ./nacos/logs/:/home/nacos/logs
|
- ./nacos/logs/:/home/nacos/logs
|
||||||
- ./nacos/conf/application.properties:/home/nacos/conf/application.properties
|
- ./nacos/conf/application.properties:/home/nacos/conf/application.properties
|
||||||
|
|||||||
@@ -31,4 +31,12 @@ sudo docker stop wfc-modules-job
|
|||||||
sudo docker rm wfc-modules-job
|
sudo docker rm wfc-modules-job
|
||||||
sudo docker rmi docker_wfc-modules-job
|
sudo docker rmi docker_wfc-modules-job
|
||||||
|
|
||||||
|
sudo docker stop wfc-modules-file
|
||||||
|
sudo docker rm wfc-modules-file
|
||||||
|
sudo docker rmi docker_wfc-modules-file
|
||||||
|
|
||||||
|
sudo docker stop wfc-modules-gen
|
||||||
|
sudo docker rm wfc-modules-gen
|
||||||
|
sudo docker rmi docker_wfc-modules-gen
|
||||||
|
|
||||||
sudo ./deploy.sh backend
|
sudo ./deploy.sh backend
|
||||||
|
|||||||
Reference in New Issue
Block a user