Browse Source

部署环境搭建

郭超 3 years ago
parent
commit
28cc8ff938
2 changed files with 47 additions and 36 deletions
  1. 30 1
      readme.md
  2. 17 35
      site/src/main/resources/application.yml

+ 30 - 1
readme.md

@@ -23,4 +23,33 @@ RequirementDoc
 ```$xslt
 jenkins构建:http://116.62.172.121:8081/view/%E7%A7%91%E6%8A%80%E9%83%A8%E4%B8%93%E9%A1%B9-%E4%BC%97%E5%8C%85%E5%B9%B3%E5%8F%B0/job/%E6%9E%84%E5%BB%BA-%E7%BE%A4%E6%99%BA-%E8%87%AA%E5%8A%A8%E5%8C%96%E6%9E%84%E5%BB%BA/
 部署文档请看:https://mooctest-kfg3oh.yuque.com/mooctest/gfh4ed/zfwwhe
-```
+```
+
+scp site-0.0.1-SNAPSHOT.ja## 项目说明
+1. 项目名称:信创社区中的信创平台模块(群智平台后端)
+2. 项目分支:
+```$xslt
+dev-XC              是信创平台的开发版本
+PrivateReleaseOfXC  是信创平台的线上版本
+dev-Cofortest       是群智平台的开发版本
+ReleaseForCofortest 是群智平台的线上版本
+```
+3. 项目负责人:郭超
+4. 开发运行的环境:dev,开发时需要修改application.yml中file.save.path,改成本机的对应文件夹。此目录下含以下文件夹:
+```
+Apk
+ApplicationType
+ExportTask
+Image
+RequirementDoc
+```
+5. 启动说明:使用site下的SiteApplication启动
+6. 安装部署:
+- 分支:PrivateReleaseOfXC
+- 环境:private-cloud
+```$xslt
+jenkins构建:http://116.62.172.121:8081/view/%E7%A7%91%E6%8A%80%E9%83%A8%E4%B8%93%E9%A1%B9-%E4%BC%97%E5%8C%85%E5%B9%B3%E5%8F%B0/job/%E6%9E%84%E5%BB%BA-%E7%BE%A4%E6%99%BA-%E8%87%AA%E5%8A%A8%E5%8C%96%E6%9E%84%E5%BB%BA/
+部署文档请看:https://mooctest-kfg3oh.yuque.com/mooctest/gfh4ed/zfwwhe
+```
+
+scp site-0.0.1-SNAPSHOT.jar root@150.158.176.114:/root/guochao/site-backendr root@150.158.176.114:/root/guochao/site-backend

+ 17 - 35
site/src/main/resources/application.yml

@@ -125,11 +125,8 @@ spring:
     database: 0
 user:
   service:
-    baseUrl: http://106.14.81.62:8281
+    baseUrl: http://127.0.0.1:8082
 
-#file:
-#  save:
-#    path: /var/www/
 feature:
   client:
     oss: true
@@ -142,59 +139,44 @@ file:
   save:
     path: /Users/guochao/Desktop/project/data/cofortest/
 
-#feature:
-#  client:
-#    oss: false
-
 website:
   domain: mooctest.net
 
+
 ---
-#私有云版本 私有云
+# 开发版本
 spring:
-  profiles: private-cloud
+  profiles: prod
   datasource:
-    url: jdbc:mysql://mysql:3306/crowd-test-service-private?useSSL=false&useUnicode=yes&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
+    url: jdbc:mysql://106.14.81.62:3308/crowd-test-service-testcase?useSSL=false&useUnicode=yes&characterEncoding=UTF-8&serverTimezone=Asia/Shanghai
     username: root
     password: Customs2019
   redis:
-    host: redis
-    port: 6379
-    password:
+    host: 106.14.81.62
+    password: Customs2019
+    database: 0
+    port: 6378
     jedis:
       pool:
         max-active: 8
         max-idle: 8
         max-wait: -1
         min-idle: 0
-    database: 0
+user:
+  service:
+    baseUrl: http://150.158.176.114:8082
 
 feature:
   client:
-    oss: false
+    oss: true
   task:
-    import: true
-    recommend: false
+    import: true  #任务导入
+    recommend: false #任务推荐
     acceptedPWD: true #使用密码接收任务
 
 file:
   save:
-    path: /var/www/
-
-user:
-  service:
-    baseUrl: http://crowd_user:8081
-
-private:
-  cloud:
-    # 导入私有云的项目code以此开头
-    master: MASTER
-    task:
-      type:
-        code: MzZC
-    publish:
-      project:
-        id: 4
+    path: /Users/guochao/Desktop/project/data/cofortest/
 
 website:
-  domain: 127.0.0.1
+  domain: 150.158.176.114