Commit a45adbb3 authored by 白秀江's avatar 白秀江

更新project-deploy.sh

parent e51d59c6
...@@ -16,7 +16,8 @@ function deploy() { ...@@ -16,7 +16,8 @@ function deploy() {
$2/restart.sh $2/restart.sh
COUNT=0 COUNT=0
TIMES=0 TIMES=0
while [ $COUNT -lt 1 ]; do if [ -n $3 ]; then
while [ $COUNT -lt 1 ]; do
echo -e ".\c" echo -e ".\c"
sleep 1 sleep 1
COUNT=`curl -v $3 | grep "success" | wc -l` COUNT=`curl -v $3 | grep "success" | wc -l`
...@@ -28,6 +29,8 @@ function deploy() { ...@@ -28,6 +29,8 @@ function deploy() {
exit 1 exit 1
fi fi
done done
fi
} }
# #
# $1 方法名 检查项目环境 # $1 方法名 检查项目环境
......
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