5 部署文档
somunslotus edited this page 2024-09-03 13:52:55 +08:00
This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

自动化部署:

部署前需要检查的事情:

  1. nacos配置的变更
  2. mysql 数据库表的变更

部署的构建环境ssh登录 172.20.32.186172.20.32.181为dev环境 172.20.32.185为test环境

1. 管理平台和前端默认部署的是master, 如果需要部署其他分支,手动切换分支,然后执行命令)

进入代码目录:
cd /home/somuns/ci4s/k8s

部署前端和管理平台到181
./build_and_deploy.sh

部署前端到181:
./build_and_deploy.sh -s front

部署管理平台到181
./build_and_deploy.sh -s manage

部署所有服务到181环境初始化的时候使用
./build_and_deploy.sh -s all

部署前端和管理平台到185
./build_and_deploy.sh -e test

部署前端到185
./build_and_deploy.sh -s front -e test

部署管理平台到185
./build_and_deploy.sh -s manage -e test

部署所有服务到185环境初始化的时候使用
./build_and_deploy.sh -s all -e test

2.流水线转换服务默认部署的是master, 如果需要部署其他分支,手动切换分支,然后执行命令):

进入代码目录:
cd /home/somuns/pipeline-convert

部署流水线转换服务到181
./build_for_181.sh

部署流水线转换服务到185
./build_for_185.sh