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