修改部署脚本和配置,部署到0.16服务器上
This commit is contained in:
parent
a563ba96c2
commit
f027fa6c3f
|
|
@ -21,13 +21,17 @@ spring:
|
|||
password: nacos
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 192.168.0.14:8848
|
||||
namespace: f648524d-0a7b-449e-8f92-64e05236fd51
|
||||
server-addr: 192.168.0.16:18848
|
||||
namespace: bonus-ai
|
||||
username: nacos
|
||||
password: nacos
|
||||
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 192.168.0.14:8848
|
||||
namespace: f648524d-0a7b-449e-8f92-64e05236fd51
|
||||
server-addr: 192.168.0.16:18848
|
||||
namespace: bonus-ai
|
||||
username: nacos
|
||||
password: nacos
|
||||
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
|
|
|
|||
|
|
@ -21,12 +21,12 @@ spring:
|
|||
password: nacos
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
namespace: 9e2bf9d8-4515-4dfb-aeac-e10bc2b26294
|
||||
server-addr: 127.0.0.1:18848
|
||||
namespace: bonus-ai
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
namespace: 9e2bf9d8-4515-4dfb-aeac-e10bc2b26294
|
||||
server-addr: 127.0.0.1:18848
|
||||
namespace: bonus-ai
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
|
|
|
|||
|
|
@ -16,12 +16,12 @@ spring:
|
|||
password: nacos
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
namespace: 9e2bf9d8-4515-4dfb-aeac-e10bc2b26294
|
||||
server-addr: 127.0.0.1:18848
|
||||
namespace: bonus-ai
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
namespace: 9e2bf9d8-4515-4dfb-aeac-e10bc2b26294
|
||||
server-addr: 127.0.0.1:18848
|
||||
namespace: bonus-ai
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
#!/bin/bash
|
||||
|
||||
export deploy_path=/opt/webapps/bonus-ai-v2
|
||||
export deploy_path=/data/ceshi/gqk/bonus-ai-v2
|
||||
|
||||
export app_workspace=/home/jenkins/workspace/Bonus-Cloud
|
||||
export ai_workspace=/home/jenkins/workspace/Bonus-Cloud-AI-V2
|
||||
|
|
@ -12,12 +12,9 @@ app_source_jars=(
|
|||
"bonus-auth/target/bonus-auth.jar"
|
||||
"bonus-gateway/target/bonus-gateway.jar"
|
||||
"bonus-modules/bonus-system/target/bonus-system.jar"
|
||||
"bonus-modules/bonus-file/target/bonus-file.jar"
|
||||
)
|
||||
|
||||
#for source_jar in "${app_source_jars[@]}"; do
|
||||
# cp -f ${app_workspace}/${source_jar} $deploy_path
|
||||
# echo "copied ${app_workspace}/${source_jar} to $deploy_path"
|
||||
#done
|
||||
for source_jar in "${app_source_jars[@]}"; do
|
||||
# 获取文件名(不带目录路径)
|
||||
filename=$(basename "$source_jar")
|
||||
|
|
@ -29,17 +26,18 @@ for source_jar in "${app_source_jars[@]}"; do
|
|||
new_filename="${base_name}${suffix}.jar"
|
||||
echo "filename:$new_filename"
|
||||
|
||||
cp -f ${app_workspace}/${source_jar} "$deploy_path/$new_filename"
|
||||
scp -P 22 -r ${app_workspace}/${source_jar} "root@192.168.0.16:$deploy_path/$new_filename"
|
||||
echo "copied ${app_workspace}/${source_jar} to '$deploy_path/$new_filename'"
|
||||
done
|
||||
|
||||
cp -f ${ai_workspace}/"bonus-modules/bonus-ai/target/bonus-modules-ai-v2.jar" $deploy_path
|
||||
scp -P 22 -r ${ai_workspace}/"bonus-modules/bonus-ai/target/bonus-modules-ai-v2.jar" root@192.168.0.16:$deploy_path
|
||||
echo "copied ${app_workspace}/${source_jar} to $deploy_path"
|
||||
|
||||
# Define an array of JAR files to run
|
||||
jars=("bonus-auth-ai-v2.jar --spring.config.location=file:auth_bootstrap.yml"
|
||||
"bonus-gateway-ai-v2.jar --spring.config.location=file:gateway_bootstrap.yml"
|
||||
"bonus-system-ai-v2.jar --spring.config.location=file:system_bootstrap.yml")
|
||||
"bonus-system-ai-v2.jar --spring.config.location=file:system_bootstrap.yml"
|
||||
"bonus-file-ai-V2.jar --spring.config.location=file:file_bootstrap.yml")
|
||||
|
||||
# 遍历数组并检查每个JAR文件的进程
|
||||
for jar_with_args in "${jars[@]}"; do
|
||||
|
|
|
|||
|
|
@ -16,12 +16,12 @@ spring:
|
|||
password: nacos
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 192.168.0.56:8848
|
||||
namespace: 39c95294-eb64-4096-ada1-30a215bdd511
|
||||
server-addr: 127.0.0.1:18848
|
||||
namespace: bonus-ai
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 192.168.0.56:8848
|
||||
namespace: 39c95294-eb64-4096-ada1-30a215bdd511
|
||||
server-addr: 127.0.0.1:18848
|
||||
namespace: bonus-ai
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
|
|
|
|||
|
|
@ -17,12 +17,12 @@ spring:
|
|||
password: nacos
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
namespace: 9e2bf9d8-4515-4dfb-aeac-e10bc2b26294
|
||||
server-addr: 127.0.0.1:18848
|
||||
namespace: bonus-ai
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
namespace: 9e2bf9d8-4515-4dfb-aeac-e10bc2b26294
|
||||
server-addr: 127.0.0.1:18848
|
||||
namespace: bonus-ai
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
|
|
|
|||
|
|
@ -16,12 +16,12 @@ spring:
|
|||
password: nacos
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
namespace: 9e2bf9d8-4515-4dfb-aeac-e10bc2b26294
|
||||
server-addr: 127.0.0.1:18848
|
||||
namespace: bonus-ai
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
namespace: 9e2bf9d8-4515-4dfb-aeac-e10bc2b26294
|
||||
server-addr: 127.0.0.1:18848
|
||||
namespace: bonus-ai
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
|
|
|
|||
|
|
@ -16,12 +16,12 @@ spring:
|
|||
password: nacos
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 192.168.0.56:8848
|
||||
namespace: 39c95294-eb64-4096-ada1-30a215bdd511
|
||||
server-addr: 127.0.0.1:18848
|
||||
namespace: bonus-ai
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 192.168.0.56:8848
|
||||
namespace: 39c95294-eb64-4096-ada1-30a215bdd511
|
||||
server-addr: 127.0.0.1:18848
|
||||
namespace: bonus-ai
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
|
|
|
|||
|
|
@ -16,12 +16,12 @@ spring:
|
|||
password: nacos
|
||||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
namespace: 9e2bf9d8-4515-4dfb-aeac-e10bc2b26294
|
||||
server-addr: 127.0.0.1:18848
|
||||
namespace: bonus-ai
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 127.0.0.1:8848
|
||||
namespace: 9e2bf9d8-4515-4dfb-aeac-e10bc2b26294
|
||||
server-addr: 127.0.0.1:18848
|
||||
namespace: bonus-ai
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
|
|
|
|||
Loading…
Reference in New Issue