|
|
@ -164,7 +164,7 @@ deployServer() { |
|
|
start=$2 |
|
|
start=$2 |
|
|
deployPull |
|
|
deployPull |
|
|
buildCode |
|
|
buildCode |
|
|
echo "###--代码构建完成--------------------------------------------------------------------------### ($pid)" |
|
|
echo "###--代码构建完成--------------------------------------------------------------------------###" |
|
|
# 停止服务 |
|
|
# 停止服务 |
|
|
if [ ! -z $pid ];then |
|
|
if [ ! -z $pid ];then |
|
|
stopServer $pid |
|
|
stopServer $pid |
|
|
@ -212,10 +212,10 @@ if [ "$cmd" == "pull" ];then |
|
|
fi |
|
|
fi |
|
|
elif [ "$cmd" == "build" ];then |
|
|
elif [ "$cmd" == "build" ];then |
|
|
deployYvanUI |
|
|
deployYvanUI |
|
|
deployServer $pid "no_start" |
|
|
deployServer "$pid" "no_start" |
|
|
elif [ "$cmd" == "deploy" ];then |
|
|
elif [ "$cmd" == "deploy" ];then |
|
|
deployYvanUI |
|
|
deployYvanUI |
|
|
deployServer $pid "start" |
|
|
deployServer "$pid" "start" |
|
|
elif [ "$cmd" == "restart" ];then |
|
|
elif [ "$cmd" == "restart" ];then |
|
|
restartServer $pid |
|
|
restartServer $pid |
|
|
elif [ "$cmd" == "start" ];then |
|
|
elif [ "$cmd" == "start" ];then |
|
|
|