reghao 1 year ago
parent
commit
8f8c65ef73
4 changed files with 24 additions and 16 deletions
  1. 17 9
      build.sh
  2. 6 6
      config/application.yml
  3. BIN
      config/deployer.jar
  4. 1 1
      start.sh

+ 17 - 9
build.sh

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

+ 6 - 6
config/application.yml

@@ -1,23 +1,23 @@
 zookeeper:
 zookeeper:
-  host: 192.168.0.180
+  host: 127.0.0.1
   port: 2181
   port: 2181
 mongodb:
 mongodb:
-  host: 192.168.0.180
+  host: 127.0.0.1
   port: 27017
   port: 27017
   authentication-database: admin
   authentication-database: admin
   username: test
   username: test
   password: Test@123456
   password: Test@123456
 redis:
 redis:
-  host: 192.168.0.180
+  host: 127.0.0.1
   port: 6379
   port: 6379
-  password: Test@123456
+  password: Dev@123456
 rabbitmq:
 rabbitmq:
-  host: 192.168.0.180
+  host: 127.0.0.1
   port: 5672
   port: 5672
   username: test
   username: test
   password: Test@123456
   password: Test@123456
 mysql:
 mysql:
-  host: 192.168.0.180
+  host: 127.0.0.1
   port: 3306
   port: 3306
   username: test
   username: test
   password: Test@123456
   password: Test@123456

BIN
config/deployer.jar


+ 1 - 1
start.sh

@@ -2,7 +2,7 @@
 
 
 set -e
 set -e
 
 
-cd build/bin/
+cd tmp/bin/
 
 
 ###############################################################################
 ###############################################################################
 # 启动 bnt 项目应用
 # 启动 bnt 项目应用