This commit is contained in:
sxu 2024-12-31 09:07:35 +08:00
parent be798781d1
commit 37b4cf9096
5 changed files with 13 additions and 48 deletions

View File

@ -1,10 +1,10 @@
AUTH_RESOURCE_NAME=bonus-auth-24.10.0-SNAPSHOT-material-mall.jar AUTH_RESOURCE_NAME=bonus-auth-24.10.0-SNAPSHOT-smart-site.jar
GATEWAY_RESOURCE_NAME=bonus-gateway-24.10.0-SNAPSHOT-material-mall.jar GATEWAY_RESOURCE_NAME=bonus-gateway-24.10.0-SNAPSHOT-smart-site.jar
SYS_RESOURCE_NAME=bonus-system-24.10.0-SNAPSHOT-material-mall.jar SYS_RESOURCE_NAME=bonus-system-24.10.0-SNAPSHOT-smart-site.jar
JOB_RESOURCE_NAME=bonus-job-24.10.0-SNAPSHOT-material-mall.jar JOB_RESOURCE_NAME=bonus-job-24.10.0-SNAPSHOT-smart-site.jar
FILE_RESOURCE_NAME=bonus-file-24.10.0-SNAPSHOT-material-mall.jar FILE_RESOURCE_NAME=bonus-file-24.10.0-SNAPSHOT-smart-site.jar
MONITOR_RESOURCE_NAME=bonus-visual-monitor-24.10.0-SNAPSHOT-material-mall.jar MONITOR_RESOURCE_NAME=bonus-visual-monitor-24.10.0-SNAPSHOT-smart-site.jar
MATERIAL_RESOURCE_NAME=bonus-material-mall.jar SMART_SITE_RESOURCE_NAME=bonus-smart-site.jar
tpid=`ps -ef|grep $AUTH_RESOURCE_NAME|grep -v grep|grep -v kill|awk '{print $2}'` tpid=`ps -ef|grep $AUTH_RESOURCE_NAME|grep -v grep|grep -v kill|awk '{print $2}'`
@ -97,13 +97,13 @@ echo 'Stop Success!'
fi fi
tpid=`ps -ef|grep $MATERIAL_RESOURCE_NAME|grep -v grep|grep -v kill|awk '{print $2}'` tpid=`ps -ef|grep $SMART_SITE_RESOURCE_NAME|grep -v grep|grep -v kill|awk '{print $2}'`
if [ ${tpid} ]; then if [ ${tpid} ]; then
echo 'Stop Process...' echo 'Stop Process...'
kill -15 $tpid kill -15 $tpid
fi fi
sleep 5 sleep 5
tpid=`ps -ef|grep $MATERIAL_RESOURCE_NAME|grep -v grep|grep -v kill|awk '{print $2}'` tpid=`ps -ef|grep $SMART_SITE_RESOURCE_NAME|grep -v grep|grep -v kill|awk '{print $2}'`
if [ ${tpid} ]; then if [ ${tpid} ]; then
echo 'Kill Process!' echo 'Kill Process!'
kill -9 $tpid kill -9 $tpid

View File

@ -1,35 +0,0 @@
# Tomcat
server:
port: 18588
# Spring
spring:
servlet:
multipart:
# 文件最大
max-file-size: 20MB
# 设置总上传数据总大小
max-request-size: 20MB
application:
# 应用名称
name: bonus-material
profiles:
# 环境配置
active: sgzb_bns_test
cloud:
nacos:
username: nacos
password: bonus@Admin123
discovery:
# 服务注册地址
server-addr: 192.168.0.244:8848
namespace: sgzb_bns
config:
# 配置中心地址
server-addr: 192.168.0.244:8848
namespace: sgzb_bns
# 配置文件格式
file-extension: yml
# 共享配置
shared-configs:
- application-${spring.profiles.active}.${spring.cloud.nacos.config.file-extension}

View File

@ -17,7 +17,7 @@ pipeline {
doGenerateSubmoduleConfigurations: false, doGenerateSubmoduleConfigurations: false,
extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: '']], extensions: [[$class: 'RelativeTargetDirectory', relativeTargetDir: '']],
submoduleCfg: [], submoduleCfg: [],
userRemoteConfigs: [[url: 'http://192.168.0.244:3000/bonus/Bonus-Cloud-Material.git']] userRemoteConfigs: [[url: 'http://192.168.0.244:3000/bonus/Bonus-Cloud-Smart-Site.git']]
]) ])
} }
} }

View File

@ -11,7 +11,7 @@ spring:
max-request-size: 20MB max-request-size: 20MB
application: application:
# 应用名称 # 应用名称
name: bonus-material-mall name: bonus-smart-site
profiles: profiles:
# 环境配置 # 环境配置
active: smart_site_test active: smart_site_test

View File

@ -1,6 +1,6 @@
P_ID=$(pgrep -f BonusMaterialApplication) P_ID=$(pgrep -f BonusSmartSiteApplication)
if [ -z "$P_ID" ]; then if [ -z "$P_ID" ]; then
echo "BonusMaterialApplication is not running" echo "BonusSmartSiteApplication is not running"
else else
kill -9 "$P_ID" kill -9 "$P_ID"
fi fi