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

更新project-deploy.sh

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