build: shell script add

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

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

@ -13,5 +13,10 @@ if [ ! -f "$1.jar" ]; then
echo "==================================="
exit 1
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
echo "================================"
echo " $1 deamon start"
echo " $1 application start"
echo "================================"
JAVA_HOME=/lib/jvm/java-17-openjdk
export JAVA_HOME

@ -7,14 +7,16 @@ if [ $# -ne 1 ]; then
exit 1
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"
if [ -z $PID ]; then
echo "No process is running"
echo "=============================="
echo " No $1 deamon is running"
echo "=============================="
else
echo "Kill process"
echo "Kill $1[$PID] process"
kill $PID
echo "========================="
echo "mens-api deamon stop"
echo "========================="
echo "==============================="
echo " $1[$PID] application stop"
echo "==============================="
fi

Loading…
Cancel
Save