From 11fe6e9b7495b3f42adba31ae1e3389d304bd4a6 Mon Sep 17 00:00:00 2001 From: lizw Date: Thu, 17 Mar 2022 13:49:46 +0800 Subject: [PATCH] add yxt/api-gateway.sh --- yxt/api-gateway.sh | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/yxt/api-gateway.sh b/yxt/api-gateway.sh index 4c1e661..9576080 100644 --- a/yxt/api-gateway.sh +++ b/yxt/api-gateway.sh @@ -57,10 +57,8 @@ logs() { } pid=`ps -ef | grep "DappName=${serverName}" | grep -v 'grep' | awk '{print $2}'` -# 操作参数: pull restart start stop kill log logs -if [ "$cmd" == "pull" ];then - deployPull $pid -elif [ "$cmd" == "restart" ];then +# 操作参数: restart start stop kill log logs +if [ "$cmd" == "restart" ];then deployServer $pid elif [ "$cmd" == "start" ];then startServer $pid @@ -70,9 +68,9 @@ elif [ "$cmd" == "log" ] || [ "$cmd" == "logs" ];then logs else if [ -z $pid ];then - echo "$serverName 未运行 | 输入操作参数: pull restart start stop kill log logs" + echo "$serverName 未运行 | 输入操作参数: restart start stop kill log logs" else - echo "输入操作参数: pull restart start stop kill log logs" + echo "输入操作参数: restart start stop kill log logs" echo "pid=$pid | $serverName 正在运行... | 查看日志: tail -F $logPath -n 100" fi fi