|
|
@@ -5,8 +5,8 @@ set -e
|
|
|
env='test'
|
|
|
base_dir=`pwd`
|
|
|
config_dir="${base_dir}/config"
|
|
|
-proj_dir="${base_dir}/build/proj"
|
|
|
-bin_dir="${base_dir}/build/bin"
|
|
|
+proj_dir="${base_dir}/tmp/proj"
|
|
|
+bin_dir="${base_dir}/tmp/bin"
|
|
|
|
|
|
echo "创建 proj 目录和 bin 目录..."
|
|
|
if [ -d ${proj_dir} ]; then
|
|
|
@@ -75,9 +75,9 @@ replace_server_config() {
|
|
|
}
|
|
|
|
|
|
###############################################################################
|
|
|
-# 构建应用
|
|
|
+# 构建后端应用
|
|
|
###############################################################################
|
|
|
-build_app() {
|
|
|
+build_backend() {
|
|
|
###############################################################################
|
|
|
# 构建 oss 项目 jar 包
|
|
|
###############################################################################
|
|
|
@@ -108,7 +108,12 @@ build_app() {
|
|
|
cp file/file-service/target/tnb-file.jar ${bin_dir}
|
|
|
cp content/content-service/target/tnb-content.jar ${bin_dir}
|
|
|
cp data/data-service/target/tnb-data.jar ${bin_dir}
|
|
|
+}
|
|
|
|
|
|
+###############################################################################
|
|
|
+# 构建前端应用
|
|
|
+###############################################################################
|
|
|
+build_front() {
|
|
|
###############################################################################
|
|
|
# 构建 tnbapp 项目
|
|
|
###############################################################################
|
|
|
@@ -123,13 +128,16 @@ build_app() {
|
|
|
}
|
|
|
|
|
|
echo "clone 项目..."
|
|
|
-clone_proj
|
|
|
+# clone_proj
|
|
|
+
|
|
|
+echo "构建依赖..."
|
|
|
+# build_dependencies
|
|
|
|
|
|
echo "修改第三方服务依赖配置..."
|
|
|
replace_server_config
|
|
|
|
|
|
-echo "构建依赖..."
|
|
|
-build_dependencies
|
|
|
+echo "构建后端应用..."
|
|
|
+build_backend
|
|
|
|
|
|
-echo "构建应用..."
|
|
|
-build_app
|
|
|
+echo "构建前端应用..."
|
|
|
+# build_front
|