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

Loading…
Cancel
Save