Browse Source

大参林项目测试环境部署脚本

master
lizw 4 years ago
parent
commit
284ff43902
  1. 12
      dsl/build.sh

12
dsl/build.sh

@ -2,27 +2,23 @@
#set -x
set -e
codePath=/data3/yvan-framework
codePath=/data3/thinkingwms-ui
gitUrlArr=(
"http://git.yvanui.com/yvan-private/yvan-framework.git"
"http://git.yvanui.com/jztd/yvan-ext.git"
"http://git.yvanui.com/jztd/thinkingwms-ui.git"
"http://git.yvanui.com/jztd/yvan-ext.git"
)
branchArr=(
"master"
"master"
"master"
)
positionArr=(
"."
"yvan-ext"
"thinkingwms-ui"
)
# 是否需要构建,-1:自动;0:不需要;1:需要
needBuild=(
"-1"
"-1"
"-1"
)
echoPrefix="\033[36m+"
@ -92,8 +88,8 @@ buildCode() {
# 构建 thinkingwms-ui/client
if [ "${needBuild[2]}" != "0" ]; then
echo -e "$echoPrefix cd $codePath/thinkingwms-ui/client $echoSuffix"
cd "$codePath/thinkingwms-ui/client"
echo -e "$echoPrefix cd $codePath/client $echoSuffix"
cd "$codePath/client"
echo -e "$echoPrefix yarn $echoSuffix"
yarn
echo -e "$echoPrefix yarn link yvan-ext $echoSuffix"

Loading…
Cancel
Save