commit
29dbc455b0
@ -1,4 +1,5 @@
|
|||||||
server.port=8080
|
server.port=8080
|
||||||
|
|
||||||
eureka.client.register-with-eureka=false
|
eureka.client.register-with-eureka=false
|
||||||
eureka.client.fetchRegistry=false
|
eureka.client.fetchRegistry=false
|
||||||
#eureka.client.server.waitTimeInMsWhenSyncEmpty=0
|
#eureka.client.server.waitTimeInMsWhenSyncEmpty=0
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
. /etc/profile
|
#. /etc/profile
|
||||||
. ~/.bashrc
|
#. ~/.bashrc
|
||||||
. ~/.bash_profile
|
#. ~/.bash_profile
|
||||||
#support jsch commons
|
#support jsch commons
|
||||||
|
|
||||||
cd `dirname $0`
|
cd `dirname $0`
|
||||||
@ -18,12 +18,12 @@ echo "--------start app ${DEPLOY_DIR}--------"
|
|||||||
PARENT_DIR=$(dirname "$PWD")
|
PARENT_DIR=$(dirname "$PWD")
|
||||||
CONF_DIR=$DEPLOY_DIR/conf
|
CONF_DIR=$DEPLOY_DIR/conf
|
||||||
LIB_DIR=$DEPLOY_DIR/lib
|
LIB_DIR=$DEPLOY_DIR/lib
|
||||||
SERVER_NAME=`cat $CONF_DIR/config/application.yml | grep -w "name:" | grep -v "#" | awk 'NR==1{print $2}' | tr -d '\r'`
|
SERVER_NAME=`cat $CONF_DIR/config/application.properties | grep -w "spring.application.name" | grep -v "#" | awk -F= 'NR==1{print $2}'`
|
||||||
SERVER_PORT=`cat $CONF_DIR/config/application.yml | grep -w "port:" | grep -v "#" | awk 'NR==1{print $2}' | tr -d '\r'`
|
SERVER_PORT=`cat $CONF_DIR/config/application.properties | grep -w "server.port" | grep -v "#" | awk -F= 'NR==1{print $2}'`
|
||||||
|
|
||||||
#REM **********************************************************************************************
|
#REM **********************************************************************************************
|
||||||
LOG_PATH="/export/log/qiwen-file"
|
LOG_PATH=$DEPLOY_DIR/log/qiwen-file
|
||||||
GC_LOG_PATH="/export/log/qiwen-file/gc"
|
GC_LOG_PATH=$DEPLOY_DIR/log/qiwen-file/gc
|
||||||
if [ "${LOG_PATH}" == "" ] ; then
|
if [ "${LOG_PATH}" == "" ] ; then
|
||||||
LOG_PATH=$PARENT_DIR/logs/${SERVER_NAME}
|
LOG_PATH=$PARENT_DIR/logs/${SERVER_NAME}
|
||||||
fi
|
fi
|
||||||
|
@ -1,7 +1,7 @@
|
|||||||
#!/bin/bash
|
#!/bin/bash
|
||||||
. /etc/profile
|
#. /etc/profile
|
||||||
. ~/.bashrc
|
#. ~/.bashrc
|
||||||
. ~/.bash_profile
|
#. ~/.bash_profile
|
||||||
#support jsch commons
|
#support jsch commons
|
||||||
|
|
||||||
cd `dirname $0`
|
cd `dirname $0`
|
||||||
@ -13,11 +13,12 @@ echo "========stop app ${DEPLOY_DIR}========"
|
|||||||
PARENT_DIR=$(dirname "$PWD")
|
PARENT_DIR=$(dirname "$PWD")
|
||||||
CONF_DIR=$DEPLOY_DIR/conf
|
CONF_DIR=$DEPLOY_DIR/conf
|
||||||
LIB_DIR=$DEPLOY_DIR/lib
|
LIB_DIR=$DEPLOY_DIR/lib
|
||||||
SERVER_NAME=`cat $CONF_DIR/config/application.yml | grep -w "name:" | grep -v "#" | awk 'NR==1{print $2}' | tr -d '\r'`
|
SERVER_NAME=`cat $CONF_DIR/config/application.properties | grep -w "spring.application.name" | grep -v "#" | awk -F= 'NR==1{print $2}'`
|
||||||
SERVER_PORT=`cat $CONF_DIR/config/application.yml | grep -w "port:" | grep -v "#" | awk 'NR==1{print $2}' | tr -d '\r'`
|
SERVER_PORT=`cat $CONF_DIR/config/application.properties | grep -w "server.port" | grep -v "#" | awk -F= 'NR==1{print $2}'`
|
||||||
|
|
||||||
#REM **********************************************************************************************
|
#REM **********************************************************************************************
|
||||||
LOG_PATH="/export/log/qiwen-file"
|
LOG_PATH=$DEPLOY_DIR/log/qiwen-file
|
||||||
|
|
||||||
if [ "${LOG_PATH}" == "" ] ; then
|
if [ "${LOG_PATH}" == "" ] ; then
|
||||||
LOG_PATH=$PARENT_DIR/logs/${SERVER_NAME}
|
LOG_PATH=$PARENT_DIR/logs/${SERVER_NAME}
|
||||||
fi
|
fi
|
||||||
|
Loading…
Reference in New Issue
Block a user