فهرست منبع

add yxt/api-gateway.sh

lizw 3 سال پیش
والد
کامیت
11fe6e9b74
1فایلهای تغییر یافته به همراه4 افزوده شده و 6 حذف شده
  1. 4 6
      yxt/api-gateway.sh

+ 4 - 6
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