0d01ab24 by lihua

平台正式环境发版

1 parent bc89b078
1 # 页面标题 1 # 页面标题
2 VITE_APP_TITLE = 数据资产管理系统 2 VITE_APP_TITLE = 数据资产管理系统
3 # 接口域名 3 # 接口域名
4 VITE_API_BASEURL = https://daop-zcgl-test.zgsjzc.com/ 4 VITE_API_BASEURL = https://zcgl.zgsjzc.com/
5 # VITE_API_BASEURL = http://49.4.26.201:31709/ 5 # VITE_API_BASEURL = http://49.4.26.201:31709/
6 6
7 VITE_IDASS_BASEURL = https://daop-test.zgsjzc.com/portalLogin 7 VITE_IDASS_BASEURL = https://daop.zgsjzc.com/portalLogin
8 8
9 # # 平台用户 接口请地址 9 # # 平台用户 接口请地址
10 # VITE_APP_USER_API_BASEURL = gateway-server 10 # VITE_APP_USER_API_BASEURL = gateway-server
...@@ -117,9 +117,9 @@ VITE_API_MESSAGE = ms-daop-message-service ...@@ -117,9 +117,9 @@ VITE_API_MESSAGE = ms-daop-message-service
117 VITE_APP_PERSONAL_URL = ms-daop-personel-service 117 VITE_APP_PERSONAL_URL = ms-daop-personel-service
118 118
119 #流通平台接口地址 119 #流通平台接口地址
120 VITE_APP_CIRCULATION = https://daop-lt-test.zgsjzc.com/ 120 VITE_APP_CIRCULATION = https://lt.zgsjzc.com/
121 #数据加工交付 121 #数据加工交付
122 VITE_APP_DATA_DELIVERY = https://daop-jgjf-test.zgsjzc.com/ 122 VITE_APP_DATA_DELIVERY = https://jgjf.zgsjzc.com/
123 123
124 # 是否在打包时生成 sourcemap 124 # 是否在打包时生成 sourcemap
125 VITE_BUILD_SOURCEMAP = false 125 VITE_BUILD_SOURCEMAP = false
......
...@@ -9,10 +9,10 @@ pipeline { ...@@ -9,10 +9,10 @@ pipeline {
9 //SSH_PATH = "csbr4.4" 9 //SSH_PATH = "csbr4.4"
10 //192.168.5.4 10 //192.168.5.4
11 SSH_PATH = "csbr5.4" 11 SSH_PATH = "csbr5.4"
12 SVN_TYPE = "test" 12 SVN_TYPE = "temp"
13 //139.9.190.186 13 //139.9.190.186
14 //SSH_PATH = "csbr190.186" 14 //SSH_PATH = "csbr190.186"
15 //SVN_TYPE = "master" 15 //SVN_TYPE = "master-platform"
16 //镜像版本号 16 //镜像版本号
17 image_tag = "1.0.0" 17 image_tag = "1.0.0"
18 //docker私服ip 18 //docker私服ip
...@@ -21,7 +21,6 @@ pipeline { ...@@ -21,7 +21,6 @@ pipeline {
21 port = "80" 21 port = "80"
22 //映射端口号 22 //映射端口号
23 vport = "80" 23 vport = "80"
24
25 } 24 }
26 //定时任务 25 //定时任务
27 //triggers { pollSCM('H 4/* 0 0 1-5') } 26 //triggers { pollSCM('H 4/* 0 0 1-5') }
...@@ -64,9 +63,9 @@ pipeline { ...@@ -64,9 +63,9 @@ pipeline {
64 steps { 63 steps {
65 //分分支构建 64 //分分支构建
66 script{ 65 script{
67 if(env.BRANCH_NAME=='release-test'){ 66 if(env.BRANCH_NAME=='master-platform'){
68 //master-asset分支环境 67 //master-platform-asset分支环境
69 echo 'start to deploy ${SVN_FOLD} on release-test ...' 68 echo 'start to deploy ${SVN_FOLD} on master-platform ...'
70 sh ''' 69 sh '''
71 #docker rmi -f $(docker images | grep "none" | awk '{print $3}') 70 #docker rmi -f $(docker images | grep "none" | awk '{print $3}')
72 CID=$(docker ps -a | grep "${SVN_FOLD}" | awk '{print $1}') 71 CID=$(docker ps -a | grep "${SVN_FOLD}" | awk '{print $1}')
...@@ -108,23 +107,21 @@ pipeline { ...@@ -108,23 +107,21 @@ pipeline {
108 echo 'Deploying' 107 echo 'Deploying'
109 //分分支部署 108 //分分支部署
110 script{ 109 script{
111 if(env.BRANCH_NAME=='release-test'){ 110 if(env.BRANCH_NAME=='master-platform'){
112 //master-asset分支环境 111 //master分支环境
113 echo 'start to deploy ${SVN_FOLD} on release-test ...' 112 echo 'start to deploy ${SVN_FOLD} on master-platform ...'
114 //调用Publish Over SSH插件,上传docker-compose.yaml文件并且执行deploy脚本 113 //调用Publish Over SSH插件,上传docker-compose.yaml文件并且执行deploy脚本
115 sshPublisher(publishers: [sshPublisherDesc(configName: "csbr5.4", transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: """ 114 sshPublisher(publishers: [sshPublisherDesc(configName: "csbr5.4", transfers: [sshTransfer(cleanRemote: false, excludes: '', execCommand: """
116 #使用k8s构建 115 #使用k8s构建
117 kubectl delete -f /mnt/k8s/daop/release-test/daop-zcgl/fe-data-asset-management.yaml 116 kubectl delete -f /mnt/k8s/daop/production/daop-zcgl/fe-data-asset-management.yaml
118 kubectl apply -f /mnt/k8s/daop/release-test/daop-zcgl/fe-data-asset-management.yaml 117 kubectl apply -f /mnt/k8s/daop/production/daop-zcgl/fe-data-asset-management.yaml
119 """, execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: '/mnt/csbr/data', remoteDirectorySDF: false, removePrefix: '', sourceFiles: 'output/*.*')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)]) 118 """, execTimeout: 120000, flatten: false, makeEmptyDirs: false, noDefaultExcludes: false, patternSeparator: '[, ]+', remoteDirectory: '/mnt/csbr/data', remoteDirectorySDF: false, removePrefix: '', sourceFiles: 'output/*.*')], usePromotionTimestamp: false, useWorkspaceInPromotion: false, verbose: false)])
120
121 echo 'Depoly ${SVN_FOLD} success ...' 119 echo 'Depoly ${SVN_FOLD} success ...'
122 } 120 }
123 } 121 }
124 } 122 }
125 } 123 }
126 } 124 }
127
128 //归档 125 //归档
129 post { 126 post {
130 always { 127 always {
...@@ -132,6 +129,4 @@ pipeline { ...@@ -132,6 +129,4 @@ pipeline {
132 archiveArtifacts artifacts: "dist/**", excludes: "dist" 129 archiveArtifacts artifacts: "dist/**", excludes: "dist"
133 } 130 }
134 } 131 }
135 132 }
136
137 }
...\ No newline at end of file ...\ No newline at end of file
......
1 数据资产服务平台-正式环境-发版分支 1 资产运营平台正式环境-平台正式环境-资产管理子系统
2 2
3 # 安装依赖 3 # 安装依赖
4 # 注意,必须使用 pnpm 安装依赖,请勿使用 npm 或 yarn 安装依赖 4 # 注意,必须使用 pnpm 安装依赖,请勿使用 npm 或 yarn 安装依赖
......
...@@ -43,7 +43,7 @@ server { ...@@ -43,7 +43,7 @@ server {
43 43
44 # 使用 rewrite 将 /api 替换为 /new-api 44 # 使用 rewrite 将 /api 替换为 /new-api
45 rewrite ^/api/(.*)$ /$1 break; 45 rewrite ^/api/(.*)$ /$1 break;
46 proxy_pass https://daop-zcgl-test.zgsjzc.com; 46 proxy_pass https://zcgl.zgsjzc.com;
47 } 47 }
48 48
49 location /circulation { 49 location /circulation {
...@@ -61,7 +61,7 @@ server { ...@@ -61,7 +61,7 @@ server {
61 61
62 # 使用 rewrite 将 /circulation 替换为 /new-api 62 # 使用 rewrite 将 /circulation 替换为 /new-api
63 rewrite ^/circulation/(.*)$ /$1 break; 63 rewrite ^/circulation/(.*)$ /$1 break;
64 proxy_pass https://daop-lt-test.zgsjzc.com; 64 proxy_pass https://lt.zgsjzc.com;
65 } 65 }
66 location /delivery { 66 location /delivery {
67 # 设置允许跨域的域名,可以使用通配符 '*' 允许所有域访问 67 # 设置允许跨域的域名,可以使用通配符 '*' 允许所有域访问
...@@ -78,7 +78,7 @@ server { ...@@ -78,7 +78,7 @@ server {
78 78
79 # 使用 rewrite 将 /circulation 替换为 /new-api 79 # 使用 rewrite 将 /circulation 替换为 /new-api
80 rewrite ^/delivery/(.*)$ /$1 break; 80 rewrite ^/delivery/(.*)$ /$1 break;
81 proxy_pass https://daop-jgjf-test.zgsjzc.com; 81 proxy_pass https://jgjf.zgsjzc.com;
82 } 82 }
83 83
84 error_page 500 502 503 504 /50x.html; 84 error_page 500 502 503 504 /50x.html;
......
...@@ -426,14 +426,14 @@ export const getApiDetail = (params) => request({ ...@@ -426,14 +426,14 @@ export const getApiDetail = (params) => request({
426 // url:`${import.meta.env.VITE_APP_SERVICE_BASEURL}/api-base-info/detail`, 426 // url:`${import.meta.env.VITE_APP_SERVICE_BASEURL}/api-base-info/detail`,
427 // url: `http://localhost:9000/circulation/ms-data-circulation-portal-service/enterprise/detail-by-name`, 427 // url: `http://localhost:9000/circulation/ms-data-circulation-portal-service/enterprise/detail-by-name`,
428 // url: `http://localhost:9000/delivery/ms-daop-jgjf-data-open-service/api-base-info/detail/${params}`, 428 // url: `http://localhost:9000/delivery/ms-daop-jgjf-data-open-service/api-base-info/detail/${params}`,
429 url: `https://daop-zcgl-test.zgsjzc.com/delivery/api/ms-daop-jgjf-data-open-service/api-base-info/detail/${params}`, 429 url: `https://zcgl.zgsjzc.com/delivery/api/ms-daop-jgjf-data-open-service/api-base-info/detail/${params}`,
430 method: 'get', 430 method: 'get',
431 }) 431 })
432 432
433 // 跨服务调加工交付接口 获取API调用次数 433 // 跨服务调加工交付接口 获取API调用次数
434 export const getApiInvokeCount = (data) => request({ 434 export const getApiInvokeCount = (data) => request({
435 // url: `http://localhost:9000/delivery/ms-daop-jgjf-data-open-service/home-page/dam/call-api-stat`, 435 // url: `http://localhost:9000/delivery/ms-daop-jgjf-data-open-service/home-page/dam/call-api-stat`,
436 url: `https://daop-zcgl-test.zgsjzc.com/delivery/api/ms-daop-jgjf-data-open-service/home-page/dam/call-api-stat`, 436 url: `https://zcgl.zgsjzc.com/delivery/api/ms-daop-jgjf-data-open-service/home-page/dam/call-api-stat`,
437 method: 'post', 437 method: 'post',
438 data 438 data
439 }) 439 })
......
...@@ -93,7 +93,7 @@ export const getProduct = (params) => request({ ...@@ -93,7 +93,7 @@ export const getProduct = (params) => request({
93 export const getTenantInfo = (params) => request({ 93 export const getTenantInfo = (params) => request({
94 // url: `${import.meta.env.VITE_APP_PERSONAL_URL}/tenant/getByGuid/${params}`, 94 // url: `${import.meta.env.VITE_APP_PERSONAL_URL}/tenant/getByGuid/${params}`,
95 // url: `http://localhost:9000/circulation/ms-data-circulation-portal-service/enterprise/detail-by-name`, 95 // url: `http://localhost:9000/circulation/ms-data-circulation-portal-service/enterprise/detail-by-name`,
96 url: `https://daop-zcgl-test.zgsjzc.com/circulation/api/ms-data-circulation-portal-service/enterprise/detail-by-name`, 96 url: `https://zcgl.zgsjzc.com/circulation/api/ms-data-circulation-portal-service/enterprise/detail-by-name`,
97 method: 'get', 97 method: 'get',
98 params 98 params
99 }) 99 })
......
...@@ -278,6 +278,8 @@ const createServerConnect = () => { ...@@ -278,6 +278,8 @@ const createServerConnect = () => {
278 //测试环境 278 //测试环境
279 if (location.origin == 'https://daop-zcgl-test.zgsjzc.com') { 279 if (location.origin == 'https://daop-zcgl-test.zgsjzc.com') {
280 websocketUrl = 'wss://daop-zcgl-test.zgsjzc.com/websocket' 280 websocketUrl = 'wss://daop-zcgl-test.zgsjzc.com/websocket'
281 } else if (location.origin == 'https://zcgl.zgsjzc.com') {
282 websocketUrl = 'wss://zcgl.zgsjzc.com/websocket'
281 } 283 }
282 const ws = new WebSocket(`${websocketUrl}/websocket/${userData.staffGuid}`); 284 const ws = new WebSocket(`${websocketUrl}/websocket/${userData.staffGuid}`);
283 ws.onopen = function () { 285 ws.onopen = function () {
......
Styling with Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!