Compare commits
7 Commits
d47343af69
...
cicd
| Author | SHA1 | Date | |
|---|---|---|---|
| bb4f3e2c0e | |||
| 0338bf1a15 | |||
| 5fadd533de | |||
| f2c038d543 | |||
| 30cfedec07 | |||
| 898803c514 | |||
| 4af403b22b |
@@ -12,7 +12,7 @@ steps:
|
|||||||
- name: dockerconfig
|
- name: dockerconfig
|
||||||
path: /root/.docker
|
path: /root/.docker
|
||||||
commands:
|
commands:
|
||||||
- docker build -t harbor.picaiba.com/mes/mes-cigs-ui ./ && docker push harbor.picaiba.com/mes/mes-cigs-ui
|
- docker build -t harbor.picaiba.com/kszny/wms-ui:00a-1.0.0 ./ && docker push harbor.picaiba.com/kszny/wms-ui:00a-1.0.0
|
||||||
|
|
||||||
- name: deploy
|
- name: deploy
|
||||||
image: harbor.picaiba.com/tools/kubectl:1.19.8
|
image: harbor.picaiba.com/tools/kubectl:1.19.8
|
||||||
@@ -20,9 +20,9 @@ steps:
|
|||||||
- echo "172.27.0.20 lb.kubesphere.local" >> /etc/hosts
|
- echo "172.27.0.20 lb.kubesphere.local" >> /etc/hosts
|
||||||
#- echo "52.74.223.119 github.com" >> /etc/hosts
|
#- echo "52.74.223.119 github.com" >> /etc/hosts
|
||||||
- sleep 1
|
- sleep 1
|
||||||
- kubectl scale --replicas=0 deployment/mes-ui -n mes-cigs
|
- kubectl scale --replicas=0 deployment/a-wms-ui -n wms
|
||||||
- sleep 3
|
- sleep 3
|
||||||
- kubectl scale --replicas=1 deployment/mes-ui -n mes-cigs
|
- kubectl scale --replicas=1 deployment/a-wms-ui -n wms
|
||||||
depends_on:
|
depends_on:
|
||||||
- build
|
- build
|
||||||
|
|
||||||
|
|||||||
@@ -2,6 +2,6 @@
|
|||||||
ENV = 'production'
|
ENV = 'production'
|
||||||
|
|
||||||
# base api
|
# base api
|
||||||
VUE_APP_BASE_API = '/api'
|
VUE_APP_BASE_API = ''
|
||||||
VUE_APP_REPORT_DESIGN_URL = '/ureport/designer'
|
VUE_APP_REPORT_DESIGN_URL = '/ureport/designer'
|
||||||
VUE_APP_REPORT_VIEW_URL = '/ureport/preview'
|
VUE_APP_REPORT_VIEW_URL = '/ureport/preview'
|
||||||
|
|||||||
@@ -1,9 +1,7 @@
|
|||||||
FROM node:12 AS builder
|
FROM node:12 AS builder
|
||||||
WORKDIR /app
|
WORKDIR /app
|
||||||
ADD package.json /app/
|
ADD package.json /app/
|
||||||
RUN npm install \
|
RUN npm config set registry https://registry.npmmirror.com && npm install git+https://gitee.com/shihairong/raphael && npm install
|
||||||
--registry=https://registry.npm.taobao.org \
|
|
||||||
--disturl=https://npm.taobao.org/dist
|
|
||||||
ADD . /app
|
ADD . /app
|
||||||
RUN npm run build:prod
|
RUN npm run build:prod
|
||||||
|
|
||||||
|
|||||||
@@ -66,6 +66,7 @@
|
|||||||
"nprogress": "0.2.0",
|
"nprogress": "0.2.0",
|
||||||
"outlayer": "^2.1.1",
|
"outlayer": "^2.1.1",
|
||||||
"path-to-regexp": "2.4.0",
|
"path-to-regexp": "2.4.0",
|
||||||
|
"raphael": "git+https://gitee.com/shihairong/raphael",
|
||||||
"screenfull": "4.2.0",
|
"screenfull": "4.2.0",
|
||||||
"script-loader": "0.7.2",
|
"script-loader": "0.7.2",
|
||||||
"showdown": "1.9.0",
|
"showdown": "1.9.0",
|
||||||
|
|||||||
@@ -46,8 +46,8 @@ module.exports = {
|
|||||||
// 这里写入需要代理的api和对应的目标地址
|
// 这里写入需要代理的api和对应的目标地址
|
||||||
proxy: {
|
proxy: {
|
||||||
'/api': {
|
'/api': {
|
||||||
target: 'http://localhost:8080',
|
// target: 'http://192.168.0.148:8080',
|
||||||
// target: 'http://192.168.0.198:8080',
|
target: 'http://a.wms.picaiba.com/api',
|
||||||
// target: 'http://192.168.0.127:8080',
|
// target: 'http://192.168.0.127:8080',
|
||||||
// target: 'http://192.168.0.165:8080',
|
// target: 'http://192.168.0.165:8080',
|
||||||
// target: 'http://192.168.43.105:8080',
|
// target: 'http://192.168.43.105:8080',
|
||||||
@@ -58,7 +58,7 @@ module.exports = {
|
|||||||
ws: true,
|
ws: true,
|
||||||
changeOrigin: true,
|
changeOrigin: true,
|
||||||
pathRewrite: {
|
pathRewrite: {
|
||||||
'^/portapi': ''
|
'^/api': ''
|
||||||
}
|
}
|
||||||
// 使用了proxy 就需要开启下面的选项 (http-proxy-middleware会将post请求给parse了 所以需要再次进行string化)
|
// 使用了proxy 就需要开启下面的选项 (http-proxy-middleware会将post请求给parse了 所以需要再次进行string化)
|
||||||
// onProxyReq: (proxyReq, req, res, options) => {
|
// onProxyReq: (proxyReq, req, res, options) => {
|
||||||
|
|||||||
Reference in New Issue
Block a user