lizw 4 years ago
parent
commit
3067aa9ecd
  1. 13
      yxt/deploy-lims.sh

13
yxt/deploy-lims.sh

@ -8,7 +8,8 @@ dirPath=~/deploy/yxt_lmis
serverName=yxt_lmis serverName=yxt_lmis
logPath=~/logs/yxt_lmis_nohup.log logPath=~/logs/yxt_lmis_nohup.log
profiles=${1:-"hwy"} cmd=$1
profiles=${2:-"hwy"}
echoPrefix="\033[36m+" echoPrefix="\033[36m+"
echoSuffix="\033[0m" echoSuffix="\033[0m"
@ -105,15 +106,15 @@ logs() {
pid=`ps -ef | grep "DappName=${serverName}" | grep -v 'grep' | awk '{print $2}'` pid=`ps -ef | grep "DappName=${serverName}" | grep -v 'grep' | awk '{print $2}'`
# 操作参数: pull deploy start stop kill log logs # 操作参数: pull deploy start stop kill log logs
if [ "$1" == "pull" ];then if [ "$cmd" == "pull" ];then
deployPull $pid deployPull $pid
elif [ "$1" == "deploy" ];then elif [ "$cmd" == "deploy" ];then
deployServer $pid deployServer $pid
elif [ "$1" == "start" ];then elif [ "$cmd" == "start" ];then
startServer $pid startServer $pid
elif [ "$1" == "stop" ] || [ "$1" == "kill" ];then elif [ "$cmd" == "stop" ] || [ "$cmd" == "kill" ];then
stopServer $pid stopServer $pid
elif [ "$1" == "log" ] || [ "$1" == "logs" ];then elif [ "$cmd" == "log" ] || [ "$cmd" == "logs" ];then
logs logs
else else
if [ -z $pid ];then if [ -z $pid ];then

Loading…
Cancel
Save