build: shell script add

dev
gitea-관리자 1 year ago
parent d06c44a4e4
commit 24e47e09ff

@ -4,13 +4,13 @@
spring: spring:
datasource: datasource:
hikari: hikari:
# 9 server # 9 server
maria: maria:
driver-class-name: org.mariadb.jdbc.Driver driver-class-name: org.mariadb.jdbc.Driver
jdbc-url: jdbc:mariadb://211.119.124.9:4407/mens?useUnicode=true&characterEncoding=utf-8&rewriteBatchedStatements=true&autoReconnect=true jdbc-url: jdbc:mariadb://211.119.124.8:4407/mens?useUnicode=true&characterEncoding=utf-8&rewriteBatchedStatements=true&autoReconnect=true
username: root username: root
password: xit1807 password: xit1807
read-only: false read-only: false
devtools: devtools:
livereload: livereload:
@ -52,7 +52,7 @@ decorator:
app: app:
# swagger url # swagger url
url: 'http://localhost:${server.port}${server.servlet.context-path:}/' url: 'http://211.119.124.8:${server.port}${server.servlet.context-path:}/'
data: data:
root: root:
path: /data path: /data

@ -13,5 +13,10 @@ if [ ! -f "$1.jar" ]; then
echo "===================================" echo "==================================="
exit 1 exit 1
fi fi
mv /applications/mens/$1.jar /applications/mens/$1.jar_backup
#cp /var/lib/jenkins/workspace/MENS-API/mens-api/target/mens-api.jar /applications/mens/ens-api.jar source /applications/mens/stopApi.sh $1
echo "-----------------------------------"
echo " $1 application backup success!"
echo "-----------------------------------"
#mv /applications/mens/$1.jar /applications/mens/$1.jar_backup

@ -15,7 +15,7 @@ if [ ! -f "$1.jar" ]; then
fi fi
echo "================================" echo "================================"
echo " $1 deamon start" echo " $1 application start"
echo "================================" echo "================================"
JAVA_HOME=/lib/jvm/java-17-openjdk JAVA_HOME=/lib/jvm/java-17-openjdk
export JAVA_HOME export JAVA_HOME

@ -7,14 +7,16 @@ if [ $# -ne 1 ]; then
exit 1 exit 1
fi fi
PID=`ps -ef | grep java | grep $1- | awk '{print $2}'` PID=`ps -ef | grep java | grep $1 | awk '{print $2}'`
echo "Process ID: $PID" echo "Process ID: $PID"
if [ -z $PID ]; then if [ -z $PID ]; then
echo "No process is running" echo "=============================="
echo " No $1 deamon is running"
echo "=============================="
else else
echo "Kill process" echo "Kill $1[$PID] process"
kill $PID kill $PID
echo "=========================" echo "==============================="
echo "mens-api deamon stop" echo " $1[$PID] application stop"
echo "=========================" echo "==============================="
fi fi

Loading…
Cancel
Save