Commit a4e4fdb5 by zhanghj

V1.0.0--替换启动脚本中的读取配置

git-svn-id: svn://192.168.3.233/frms/code/car-service/trunk/car-service@18226 aeb6102e-e053-11e5-9fec-f9ebc45caf4b
1 parent e39b651f
...@@ -13,10 +13,10 @@ cd .. ...@@ -13,10 +13,10 @@ cd ..
DEPLOY_DIR=`pwd` DEPLOY_DIR=`pwd`
CONF_DIR=$DEPLOY_DIR/classes CONF_DIR=$DEPLOY_DIR/classes
SERVER_NAME=`sed '/spring.application.name/!d;s/.*=//' classes/application.properties | tr -d '\r'` SERVER_NAME=`sed '/spring.application.name/!d;s/.*=//' classes/bootstrap.properties | tr -d '\r'`
SERVER_PORT=`sed '/server.port/!d;s/.*=//' classes/application.properties | tr -d '\r'` SERVER_PORT=`sed '/server.port/!d;s/.*=//' classes/bootstrap.properties | tr -d '\r'`
#LOGS_FILE=`sed '/log4j.appender.logToFile.File/!d;s/.*=//' classes/log4j.properties | tr -d '\r'` #LOGS_FILE=`sed '/log4j.appender.logToFile.File/!d;s/.*=//' classes/log4j.properties | tr -d '\r'`
LOGS_FILE=`sed '/logging.path/!d;s/.*=//' classes/application.properties | tr -d '\r'` LOGS_FILE=`sed '/logging.path/!d;s/.*=//' classes/bootstrap.properties | tr -d '\r'`
if [ -z "$SERVER_NAME" ]; then if [ -z "$SERVER_NAME" ]; then
SERVER_NAME=`hostname` SERVER_NAME=`hostname`
......
...@@ -13,10 +13,10 @@ cd .. ...@@ -13,10 +13,10 @@ cd ..
DEPLOY_DIR=`pwd` DEPLOY_DIR=`pwd`
CONF_DIR=$DEPLOY_DIR/classes CONF_DIR=$DEPLOY_DIR/classes
SERVER_NAME=`sed '/spring.application.name/!d;s/.*=//' classes/application.properties | tr -d '\r'` SERVER_NAME=`sed '/spring.application.name/!d;s/.*=//' classes/bootstrap.properties | tr -d '\r'`
SERVER_PORT=`sed '/server.port/!d;s/.*=//' classes/application.properties | tr -d '\r'` SERVER_PORT=`sed '/server.port/!d;s/.*=//' classes/bootstrap.properties | tr -d '\r'`
#LOGS_FILE=`sed '/log4j.appender.logToFile.File/!d;s/.*=//' classes/log4j.properties | tr -d '\r'` #LOGS_FILE=`sed '/log4j.appender.logToFile.File/!d;s/.*=//' classes/log4j.properties | tr -d '\r'`
LOGS_FILE=`sed '/logging.path/!d;s/.*=//' classes/application.properties | tr -d '\r'` LOGS_FILE=`sed '/logging.path/!d;s/.*=//' classes/bootstrap.properties | tr -d '\r'`
if [ -z "$SERVER_NAME" ]; then if [ -z "$SERVER_NAME" ]; then
SERVER_NAME=`hostname` SERVER_NAME=`hostname`
......
...@@ -13,10 +13,10 @@ cd .. ...@@ -13,10 +13,10 @@ cd ..
DEPLOY_DIR=`pwd` DEPLOY_DIR=`pwd`
CONF_DIR=$DEPLOY_DIR/classes CONF_DIR=$DEPLOY_DIR/classes
SERVER_NAME=`sed '/spring.application.name/!d;s/.*=//' classes/application.properties | tr -d '\r'` SERVER_NAME=`sed '/spring.application.name/!d;s/.*=//' classes/bootstrap.properties | tr -d '\r'`
SERVER_PORT=`sed '/server.port/!d;s/.*=//' classes/application.properties | tr -d '\r'` SERVER_PORT=`sed '/server.port/!d;s/.*=//' classes/bootstrap.properties | tr -d '\r'`
#LOGS_FILE=`sed '/log4j.appender.logToFile.File/!d;s/.*=//' classes/log4j.properties | tr -d '\r'` #LOGS_FILE=`sed '/log4j.appender.logToFile.File/!d;s/.*=//' classes/log4j.properties | tr -d '\r'`
LOGS_FILE=`sed '/logging.path/!d;s/.*=//' classes/application.properties | tr -d '\r'` LOGS_FILE=`sed '/logging.path/!d;s/.*=//' classes/bootstrap.properties | tr -d '\r'`
if [ -z "$SERVER_NAME" ]; then if [ -z "$SERVER_NAME" ]; then
SERVER_NAME=`hostname` SERVER_NAME=`hostname`
......
...@@ -13,10 +13,10 @@ cd .. ...@@ -13,10 +13,10 @@ cd ..
DEPLOY_DIR=`pwd` DEPLOY_DIR=`pwd`
CONF_DIR=$DEPLOY_DIR/classes CONF_DIR=$DEPLOY_DIR/classes
SERVER_NAME=`sed '/spring.application.name/!d;s/.*=//' classes/application.properties | tr -d '\r'` SERVER_NAME=`sed '/spring.application.name/!d;s/.*=//' classes/bootstrap.properties | tr -d '\r'`
SERVER_PORT=`sed '/server.port/!d;s/.*=//' classes/application.properties | tr -d '\r'` SERVER_PORT=`sed '/server.port/!d;s/.*=//' classes/bootstrap.properties | tr -d '\r'`
#LOGS_FILE=`sed '/log4j.appender.logToFile.File/!d;s/.*=//' classes/log4j.properties | tr -d '\r'` #LOGS_FILE=`sed '/log4j.appender.logToFile.File/!d;s/.*=//' classes/log4j.properties | tr -d '\r'`
LOGS_FILE=`sed '/logging.path/!d;s/.*=//' classes/application.properties | tr -d '\r'` LOGS_FILE=`sed '/logging.path/!d;s/.*=//' classes/bootstrap.properties | tr -d '\r'`
if [ -z "$SERVER_NAME" ]; then if [ -z "$SERVER_NAME" ]; then
SERVER_NAME=`hostname` SERVER_NAME=`hostname`
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!