Commit 094bc2e9 authored by 白秀江's avatar 白秀江

Update project-deploy.sh

parent a13cc47f
...@@ -9,15 +9,7 @@ TIMES=0 ...@@ -9,15 +9,7 @@ TIMES=0
while [ $COUNT -lt 1 ]; do while [ $COUNT -lt 1 ]; do
echo -e ".\c" echo -e ".\c"
sleep 1 sleep 1
if [ -n "$SERVER_PORT" ]; then COUNT=`curl "$1" | grep $2 | wc -l`
if [ "$SERVER_PROTOCOL" == "dubbo1" ]; then
COUNT=`echo status | nc -i 1 127.0.0.1 $SERVER_PORT | grep -c OK`
else
COUNT=`netstat -lnp | grep $SERVER_PORT | wc -l`
fi
else
COUNT=`ps -f | grep java | grep "$DEPLOY_DIR" | awk '{print $2}' | wc -l`
fi
if [ $COUNT -gt 0 ]; then if [ $COUNT -gt 0 ]; then
break break
fi fi
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment