diff --git a/scripts/auth_bootstrap.yml b/scripts/auth_bootstrap.yml index babac0f..2c12ea0 100755 --- a/scripts/auth_bootstrap.yml +++ b/scripts/auth_bootstrap.yml @@ -16,12 +16,12 @@ spring: password: nacos discovery: # 服务注册地址 - server-addr: 192.168.0.14:8848 - namespace: f648524d-0a7b-449e-8f92-64e05236fd51 + server-addr: 192.168.0.56:8848 + namespace: 9cde1ce1-98bc-4b9c-9213-f1fbf8a5b3cc config: # 配置中心地址 - server-addr: 192.168.0.14:8848 - namespace: f648524d-0a7b-449e-8f92-64e05236fd51 + server-addr: 192.168.0.56:8848 + namespace: 9cde1ce1-98bc-4b9c-9213-f1fbf8a5b3cc # 配置文件格式 file-extension: yml # 共享配置 diff --git a/scripts/deploy.sh b/scripts/deploy.sh index d68c013..b5d3526 100755 --- a/scripts/deploy.sh +++ b/scripts/deploy.sh @@ -5,21 +5,21 @@ export deploy_path=/opt/webapps/bonus-cloud export app_workspace=/home/jenkins/workspace/Bonus-Cloud -#app_source_jars=( -# "bonus-auth/target/bonus-auth.jar" -# "bonus-gateway/target/bonus-gateway.jar" -# "bonus-modules/bonus-file/target/bonus-file.jar" -# "bonus-modules/bonus-gen/target/bonus-gen.jar" -# "bonus-modules/bonus-job/target/bonus-job.jar" -# "bonus-modules/bonus-oss/target/bonus-oss.jar" -# "bonus-modules/bonus-system/target/bonus-system.jar" -# "bonus-visual/bonus-monitor/target/bonus-visual-monitor.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 +app_source_jars=( + "bonus-auth/target/bonus-auth.jar" + "bonus-gateway/target/bonus-gateway.jar" + "bonus-modules/bonus-file/target/bonus-file.jar" + "bonus-modules/bonus-gen/target/bonus-gen.jar" + "bonus-modules/bonus-job/target/bonus-job.jar" + "bonus-modules/bonus-oss/target/bonus-oss.jar" + "bonus-modules/bonus-system/target/bonus-system.jar" + "bonus-visual/bonus-monitor/target/bonus-visual-monitor.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 # Define an array of JAR files to run jars=("bonus-auth.jar --spring.config.location=file:auth_bootstrap.yml" "bonus-gateway.jar --spring.config.location=file:gateway_bootstrap.yml" diff --git a/scripts/file_bootstrap.yml b/scripts/file_bootstrap.yml index c0df226..dedc49f 100755 --- a/scripts/file_bootstrap.yml +++ b/scripts/file_bootstrap.yml @@ -16,12 +16,12 @@ spring: password: nacos discovery: # 服务注册地址 - server-addr: 192.168.0.14:8848 - namespace: f648524d-0a7b-449e-8f92-64e05236fd51 + server-addr: 192.168.0.56:8848 + namespace: 9cde1ce1-98bc-4b9c-9213-f1fbf8a5b3cc config: # 配置中心地址 - server-addr: 192.168.0.14:8848 - namespace: f648524d-0a7b-449e-8f92-64e05236fd51 + server-addr: 192.168.0.56:8848 + namespace: 9cde1ce1-98bc-4b9c-9213-f1fbf8a5b3cc # 配置文件格式 file-extension: yml # 共享配置 diff --git a/scripts/gateway_bootstrap.yml b/scripts/gateway_bootstrap.yml index d0383b1..83ff0f5 100755 --- a/scripts/gateway_bootstrap.yml +++ b/scripts/gateway_bootstrap.yml @@ -17,12 +17,12 @@ spring: password: nacos discovery: # 服务注册地址 - server-addr: 192.168.0.14:8848 - namespace: f648524d-0a7b-449e-8f92-64e05236fd51 + server-addr: 192.168.0.56:8848 + namespace: 9cde1ce1-98bc-4b9c-9213-f1fbf8a5b3cc config: # 配置中心地址 - server-addr: 192.168.0.14:8848 - namespace: f648524d-0a7b-449e-8f92-64e05236fd51 + server-addr: 192.168.0.56:8848 + namespace: 9cde1ce1-98bc-4b9c-9213-f1fbf8a5b3cc # 配置文件格式 file-extension: yml # 共享配置 @@ -40,8 +40,8 @@ spring: nacos: username: nacos password: nacos - server-addr: 192.168.0.14:8848 - namespace: f648524d-0a7b-449e-8f92-64e05236fd51 + server-addr: 192.168.0.56:8848 + namespace: 9cde1ce1-98bc-4b9c-9213-f1fbf8a5b3cc dataId: sentinel-bonus-gateway groupId: DEFAULT_GROUP data-type: json diff --git a/scripts/gen_bootstrap.yml b/scripts/gen_bootstrap.yml index 11efc19..ec608aa 100755 --- a/scripts/gen_bootstrap.yml +++ b/scripts/gen_bootstrap.yml @@ -16,12 +16,12 @@ spring: password: nacos discovery: # 服务注册地址 - server-addr: 192.168.0.14:8848 - namespace: f648524d-0a7b-449e-8f92-64e05236fd51 + server-addr: 192.168.0.56:8848 + namespace: 9cde1ce1-98bc-4b9c-9213-f1fbf8a5b3cc config: # 配置中心地址 - server-addr: 192.168.0.14:8848 - namespace: f648524d-0a7b-449e-8f92-64e05236fd51 + server-addr: 192.168.0.56:8848 + namespace: 9cde1ce1-98bc-4b9c-9213-f1fbf8a5b3cc # 配置文件格式 file-extension: yml # 共享配置 diff --git a/scripts/job_bootstrap.yml b/scripts/job_bootstrap.yml index a910bfb..18b6d15 100755 --- a/scripts/job_bootstrap.yml +++ b/scripts/job_bootstrap.yml @@ -16,12 +16,12 @@ spring: password: nacos discovery: # 服务注册地址 - server-addr: 192.168.0.14:8848 - namespace: f648524d-0a7b-449e-8f92-64e05236fd51 + server-addr: 192.168.0.56:8848 + namespace: 9cde1ce1-98bc-4b9c-9213-f1fbf8a5b3cc config: # 配置中心地址 - server-addr: 192.168.0.14:8848 - namespace: f648524d-0a7b-449e-8f92-64e05236fd51 + server-addr: 192.168.0.56:8848 + namespace: 9cde1ce1-98bc-4b9c-9213-f1fbf8a5b3cc # 配置文件格式 file-extension: yml # 共享配置 diff --git a/scripts/system_bootstrap.yml b/scripts/system_bootstrap.yml index ad1d6ac..446fab6 100755 --- a/scripts/system_bootstrap.yml +++ b/scripts/system_bootstrap.yml @@ -16,12 +16,12 @@ spring: password: nacos discovery: # 服务注册地址 - server-addr: 192.168.0.14:8848 - namespace: f648524d-0a7b-449e-8f92-64e05236fd51 + server-addr: 192.168.0.56:8848 + namespace: 9cde1ce1-98bc-4b9c-9213-f1fbf8a5b3cc config: # 配置中心地址 - server-addr: 192.168.0.14:8848 - namespace: f648524d-0a7b-449e-8f92-64e05236fd51 + server-addr: 192.168.0.56:8848 + namespace: 9cde1ce1-98bc-4b9c-9213-f1fbf8a5b3cc # 配置文件格式 file-extension: yml # 共享配置 diff --git a/scripts/visual_bootstrap.yml b/scripts/visual_bootstrap.yml index eb48e79..3b3305e 100755 --- a/scripts/visual_bootstrap.yml +++ b/scripts/visual_bootstrap.yml @@ -16,12 +16,12 @@ spring: password: nacos discovery: # 服务注册地址 - server-addr: 192.168.0.14:8848 - namespace: f648524d-0a7b-449e-8f92-64e05236fd51 + server-addr: 192.168.0.56:8848 + namespace: 9cde1ce1-98bc-4b9c-9213-f1fbf8a5b3cc config: # 配置中心地址 - server-addr: 192.168.0.14:8848 - namespace: f648524d-0a7b-449e-8f92-64e05236fd51 + server-addr: 192.168.0.56:8848 + namespace: 9cde1ce1-98bc-4b9c-9213-f1fbf8a5b3cc # 配置文件格式 file-extension: yml # 共享配置