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