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

更新project-deploy.sh

parent e94ef60e
...@@ -2,18 +2,11 @@ ...@@ -2,18 +2,11 @@
cd `dirname $0` cd `dirname $0`
BIN_DIR=`pwd` BIN_DIR=`pwd`
DEPLOY_DIR=`pwd` DEPLOY_DIR=`pwd`
#
# $1 方法名
case $1 in # $2 程序目录
deploy) # $3 检查的url
deploy $* #
;;
*)
echo "error"
esac
function deploy() { function deploy() {
$2/restart.sh $2/restart.sh
COUNT=0 COUNT=0
...@@ -31,3 +24,20 @@ function deploy() { ...@@ -31,3 +24,20 @@ function deploy() {
fi fi
done done
} }
function check() {
}
case $1 in
deploy)
deploy $*
;;
check)
check $*
;;
*)
echo "error"
esac
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