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

更新project-deploy.sh

parent 517c70c4
...@@ -2,19 +2,32 @@ ...@@ -2,19 +2,32 @@
cd `dirname $0` cd `dirname $0`
BIN_DIR=`pwd` BIN_DIR=`pwd`
DEPLOY_DIR=`pwd` DEPLOY_DIR=`pwd`
$1/restart.sh
COUNT=0
TIMES=0 case $1 in
while [ $COUNT -lt 1 ]; do deploy)
echo -e ".\c" deploy $*
sleep 1 ;;
COUNT=`curl -v $2 | grep "success" | wc -l`
if [ $COUNT -gt 0 ]; then *)
break echo "error"
fi esac
let TIMES=TIMES+1
if [ $TIMES -gt 200 ]; then
exit 1 function deploy() {
fi $2/restart.sh
done COUNT=0
\ No newline at end of file TIMES=0
while [ $COUNT -lt 1 ]; do
echo -e ".\c"
sleep 1
COUNT=`curl -v $3 | grep "success" | wc -l`
if [ $COUNT -gt 0 ]; then
break
fi
let TIMES=TIMES+1
if [ $TIMES -gt 200 ]; then
exit 1
fi
done
}
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