script
This commit is contained in:
parent
f5b7581b24
commit
be798781d1
|
|
@ -1,6 +1,6 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 28581
|
||||
port: 28681
|
||||
|
||||
# Spring
|
||||
spring:
|
||||
|
|
@ -9,7 +9,7 @@ spring:
|
|||
name: bonus-auth
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: material_mall_test
|
||||
active: smart_site_test
|
||||
cloud:
|
||||
nacos:
|
||||
username: nacos
|
||||
|
|
@ -17,11 +17,11 @@ spring:
|
|||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 192.168.0.244:8848
|
||||
namespace: material_mall
|
||||
namespace: smart_site
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 192.168.0.244:8848
|
||||
namespace: material_mall
|
||||
namespace: smart_site
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
|
|
|
|||
|
|
@ -1,10 +1,10 @@
|
|||
#!/bin/bash
|
||||
suffix="-material-mall"
|
||||
suffix="-smart-site"
|
||||
jar_version="24.10.0-SNAPSHOT"
|
||||
|
||||
export deploy_path=/opt/webapps/bonus-material-mall
|
||||
export deploy_path=/opt/webapps/bonus-smart-site
|
||||
export app_workspace=/opt/builds/releases/Bonus-Cloud/${jar_version}
|
||||
export biz_workspace=/opt/install/jenkins_home/workspace/Bonus-Cloud-Material
|
||||
export biz_workspace=/opt/install/jenkins_home/workspace/Bonus-Cloud-Smart-Site
|
||||
|
||||
app_source_jars=(
|
||||
"bonus-auth-${jar_version}.jar"
|
||||
|
|
@ -34,17 +34,17 @@ for source_jar in "${app_source_jars[@]}"; do
|
|||
echo "copied ${app_workspace}/${source_jar} to '$deploy_path/$new_filename'"
|
||||
done
|
||||
|
||||
cp -f ${biz_workspace}/"bonus-modules/bonus-material-mall/target/bonus-material-mall.jar" $deploy_path
|
||||
cp -f ${biz_workspace}/"bonus-modules/bonus-smart-site/target/bonus-smart-site.jar" $deploy_path
|
||||
echo "copied ${app_workspace}/${source_jar} to $deploy_path"
|
||||
|
||||
# Define an array of JAR files to run
|
||||
jars=("bonus-auth-${jar_version}-material-mall.jar --spring.config.location=file:auth_bootstrap.yml"
|
||||
"bonus-gateway-${jar_version}-material-mall.jar --spring.config.location=file:gateway_bootstrap.yml"
|
||||
"bonus-system-${jar_version}-material-mall.jar --spring.config.location=file:system_bootstrap.yml"
|
||||
"bonus-job-${jar_version}-material-mall.jar --spring.config.location=file:job_bootstrap.yml"
|
||||
"bonus-file-${jar_version}-material-mall.jar --spring.config.location=file:file_bootstrap.yml"
|
||||
"bonus-visual-monitor-${jar_version}-material-mall.jar --spring.config.location=file:visual_bootstrap.yml"
|
||||
"bonus-material-mall.jar --spring.config.location=file:material_mall_bootstrap.yml")
|
||||
jars=("bonus-auth-${jar_version}-smart-site.jar --spring.config.location=file:auth_bootstrap.yml"
|
||||
"bonus-gateway-${jar_version}-smart-site.jar --spring.config.location=file:gateway_bootstrap.yml"
|
||||
"bonus-system-${jar_version}-smart-site.jar --spring.config.location=file:system_bootstrap.yml"
|
||||
"bonus-job-${jar_version}-smart-site.jar --spring.config.location=file:job_bootstrap.yml"
|
||||
"bonus-file-${jar_version}-smart-site.jar --spring.config.location=file:file_bootstrap.yml"
|
||||
"bonus-visual-monitor-${jar_version}-smart-site.jar --spring.config.location=file:visual_bootstrap.yml"
|
||||
"bonus-smart-site.jar --spring.config.location=file:smart_site_bootstrap.yml")
|
||||
|
||||
# 遍历数组并检查每个JAR文件的进程
|
||||
for jar_with_args in "${jars[@]}"; do
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 28583
|
||||
port: 28683
|
||||
|
||||
# Spring
|
||||
spring:
|
||||
|
|
@ -9,7 +9,7 @@ spring:
|
|||
name: bonus-file
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: material_mall_test
|
||||
active: smart_site_test
|
||||
cloud:
|
||||
nacos:
|
||||
username: nacos
|
||||
|
|
@ -17,11 +17,11 @@ spring:
|
|||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 192.168.0.244:8848
|
||||
namespace: material_mall
|
||||
namespace: smart_site
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 192.168.0.244:8848
|
||||
namespace: material_mall
|
||||
namespace: smart_site
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 28580
|
||||
port: 28680
|
||||
servlet:
|
||||
context-path: zhgd
|
||||
# Spring
|
||||
|
|
@ -10,7 +10,7 @@ spring:
|
|||
name: bonus-gateway
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: material_mall_test
|
||||
active: smart_site_test
|
||||
cloud:
|
||||
nacos:
|
||||
username: nacos
|
||||
|
|
@ -18,11 +18,11 @@ spring:
|
|||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 192.168.0.244:8848
|
||||
namespace: material_mall
|
||||
namespace: smart_site
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 192.168.0.244:8848
|
||||
namespace: material_mall
|
||||
namespace: smart_site
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
|
|
@ -41,7 +41,7 @@ spring:
|
|||
username: nacos
|
||||
password: bonus@Admin123
|
||||
server-addr: 192.168.0.244:8848
|
||||
namespace: material_mall
|
||||
namespace: smart_site
|
||||
dataId: sentinel-bonus-gateway
|
||||
groupId: DEFAULT_GROUP
|
||||
data-type: json
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 28584
|
||||
port: 28684
|
||||
|
||||
# Spring
|
||||
spring:
|
||||
|
|
@ -9,7 +9,7 @@ spring:
|
|||
name: bonus-gen
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: material_mall_test
|
||||
active: smart_site_test
|
||||
cloud:
|
||||
nacos:
|
||||
username: nacos
|
||||
|
|
@ -17,11 +17,11 @@ spring:
|
|||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 192.168.0.244:8848
|
||||
namespace: material_mall
|
||||
namespace: smart_site
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 192.168.0.244:8848
|
||||
namespace: material_mall
|
||||
namespace: smart_site
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 28585
|
||||
port: 28685
|
||||
|
||||
# Spring
|
||||
spring:
|
||||
|
|
@ -9,7 +9,7 @@ spring:
|
|||
name: bonus-job
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: material_mall_test
|
||||
active: smart_site_test
|
||||
cloud:
|
||||
nacos:
|
||||
username: nacos
|
||||
|
|
@ -17,11 +17,11 @@ spring:
|
|||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 192.168.0.244:8848
|
||||
namespace: material_mall
|
||||
namespace: smart_site
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 192.168.0.244:8848
|
||||
namespace: material_mall
|
||||
namespace: smart_site
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 28588
|
||||
port: 28688
|
||||
# Spring
|
||||
spring:
|
||||
servlet:
|
||||
|
|
@ -14,7 +14,7 @@ spring:
|
|||
name: bonus-material-mall
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: material_mall_test
|
||||
active: smart_site_test
|
||||
cloud:
|
||||
nacos:
|
||||
username: nacos
|
||||
|
|
@ -22,11 +22,11 @@ spring:
|
|||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 192.168.0.244:8848
|
||||
namespace: material_mall
|
||||
namespace: smart_site
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 192.168.0.244:8848
|
||||
namespace: material_mall
|
||||
namespace: smart_site
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
|
|
@ -1,6 +1,6 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 28582
|
||||
port: 28682
|
||||
|
||||
# Spring
|
||||
spring:
|
||||
|
|
@ -9,7 +9,7 @@ spring:
|
|||
name: bonus-system
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: material_mall_test
|
||||
active: smart_site_test
|
||||
cloud:
|
||||
nacos:
|
||||
username: nacos
|
||||
|
|
@ -17,11 +17,11 @@ spring:
|
|||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 192.168.0.244:8848
|
||||
namespace: material_mall
|
||||
namespace: smart_site
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 192.168.0.244:8848
|
||||
namespace: material_mall
|
||||
namespace: smart_site
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
|
|
|
|||
|
|
@ -1,6 +1,6 @@
|
|||
# Tomcat
|
||||
server:
|
||||
port: 28586
|
||||
port: 28686
|
||||
|
||||
# Spring
|
||||
spring:
|
||||
|
|
@ -9,7 +9,7 @@ spring:
|
|||
name: bonus-monitor
|
||||
profiles:
|
||||
# 环境配置
|
||||
active: material_mall_test
|
||||
active: smart_site_test
|
||||
cloud:
|
||||
nacos:
|
||||
username: nacos
|
||||
|
|
@ -17,11 +17,11 @@ spring:
|
|||
discovery:
|
||||
# 服务注册地址
|
||||
server-addr: 192.168.0.244:8848
|
||||
namespace: material_mall
|
||||
namespace: smart_site
|
||||
config:
|
||||
# 配置中心地址
|
||||
server-addr: 192.168.0.244:8848
|
||||
namespace: material_mall
|
||||
namespace: smart_site
|
||||
# 配置文件格式
|
||||
file-extension: yml
|
||||
# 共享配置
|
||||
|
|
|
|||
Loading…
Reference in New Issue