|
|
|
@ -223,11 +223,19 @@ startPcUi() { |
|
|
|
} |
|
|
|
|
|
|
|
startMobileUi() { |
|
|
|
pid=`ps -ef | grep "${codePath}/wms-ui-mobile/node_modules/.bin/vite" | grep -v 'grep' | awk '{print $2}'` |
|
|
|
if [ -z $pid ];then |
|
|
|
echo "wms-ui-mobile 未运行" |
|
|
|
else |
|
|
|
echo -e "$echoPrefix ps -ef | grep "${codePath}/wms-ui-mobile/node_modules/.bin/vite" | grep -v 'grep' | awk '{print \$2}' | xargs kill $echoSuffix" |
|
|
|
ps -ef | grep "${codePath}/wms-ui-mobile/node_modules/.bin/vite" | grep -v 'grep' | awk '{print $2}' | xargs kill |
|
|
|
echo "wms-ui-mobile 已停止!" |
|
|
|
sleep 3s |
|
|
|
fi |
|
|
|
echo -e "$echoPrefix cd $codePath/wms-ui-mobile $echoSuffix" |
|
|
|
cd "$codePath/wms-ui-mobile" |
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
echo -e "$echoPrefix nohup yarn run dev >>/dev/null 2>&1 & $echoSuffix" |
|
|
|
nohup yarn run dev >>/dev/null 2>&1 & |
|
|
|
} |
|
|
|
|
|
|
|
pid=`ps -ef | grep "DappName=${serverName}" | grep -v 'grep' | awk '{print $2}'` |
|
|
|
@ -246,6 +254,8 @@ elif [ "$cmd" == "build" ];then |
|
|
|
elif [ "$cmd" == "deploy" ];then |
|
|
|
deployYvanUI |
|
|
|
deployServer $pid |
|
|
|
startPcUi |
|
|
|
startMobileUi |
|
|
|
elif [ "$cmd" == "restart" ];then |
|
|
|
restartServer $pid |
|
|
|
elif [ "$cmd" == "start" ];then |
|
|
|
|