Commit a18bfc7b authored by Gavin Peng's avatar Gavin Peng

feat: 金发0618配置

parent 64c8b1cd
......@@ -19,10 +19,10 @@ pipeline {
environment {
// 项目名称
SERVER_NAME = "admin"
BUILD_ENV = "v2-220518"
BUILD_ENV = "jinfa-0618"
// ssh 传输信息
SSH_NAME = "linkseeks-v2-220518"
SSH_NAME = "linkseeks-jinfa-0618"
SSH_FILE_SOURCE_NAME = "admin.tar.gz"
// 远程存放压缩包的路径
SSH_REMOTE_PATH = "/home/www/admin"
......
......@@ -2,206 +2,18 @@
const path = require('path')
module.exports = {
scm: {
SITE_ID: '1',
BACK_GATEWAY: 'http://lingxi-scm.wg.shushangyun.com',
USE_ROUTE_CONFIG: false,
SOCKET_URL: 'ws://lingxi-scm.wg.shushangyun.com',
ssh: JSON.stringify({
user: "www",
// Password optional, prompted if none given
password: "!@#project_$%^231(1)wwwuser3",
host: "119.23.219.65",
port: 8122,
localRoot: path.resolve('./dist/'),
remoteRoot: "/usr/local/nginx/html/lingxi/yanshi/api/scm/admin/dist/",
// include: ["*", "**/*"], // this would upload everything except dot files
include: ["*"],
// e.g. exclude sourcemaps, and ALL files in node_modules (including dot files)
// exclude: ["dist/**/*.map", "node_modules/**", "node_modules/**/.*", ".git/**"],
// delete ALL existing files at destination before uploading, if true
deleteRemote: true,
// Passive mode is forced (EPSV command is not sent)
forcePasv: true
})
},
10: {
SITE_ID: '1',
BACK_GATEWAY: 'http://10.0.0.10:8100',
USE_ROUTE_CONFIG: true,
SOCKET_URL: 'ws://10.0.0.10:8100',
ssh: JSON.stringify({
user: "root",
// Password optional, prompted if none given
password: "123456",
host: "10.0.0.10",
port: 22,
localRoot: path.resolve('./dist/'),
remoteRoot: "/home/www/lingxi/lingxi-business-system/dist/",
// include: ["*", "**/*"], // this would upload everything except dot files
include: ["*"],
// e.g. exclude sourcemaps, and ALL files in node_modules (including dot files)
// exclude: ["dist/**/*.map", "node_modules/**", "node_modules/**/.*", ".git/**"],
// delete ALL existing files at destination before uploading, if true
deleteRemote: true,
// Passive mode is forced (EPSV command is not sent)
forcePasv: true
})
},
25: {
SITE_ID: '1',
BACK_GATEWAY: 'http://10.0.0.25:8100',
USE_ROUTE_CONFIG: true,
SOCKET_URL: 'ws://10.0.0.25:8100',
ssh: JSON.stringify({
user: "root",
// Password optional, prompted if none given
password: "123456",
host: "10.0.0.25",
port: 22,
localRoot: path.resolve('./dist/'),
remoteRoot: "/data/.jenkins/workspace/lingxi-business-system/dist/",
// include: ["*", "**/*"], // this would upload everything except dot files
include: ["*"],
// e.g. exclude sourcemaps, and ALL files in node_modules (including dot files)
// exclude: ["dist/**/*.map", "node_modules/**", "node_modules/**/.*", ".git/**"],
// delete ALL existing files at destination before uploading, if true
deleteRemote: true,
// Passive mode is forced (EPSV command is not sent)
forcePasv: true
})
},
"study": {
SITE_ID: '1',
BACK_GATEWAY: 'http://10.0.1.207:8100',
USE_ROUTE_CONFIG: true,
SOCKET_URL: 'ws://10.0.1.207:8100',
ssh: JSON.stringify({
user: "root",
// Password optional, prompted if none given
password: "Shushangyun520",
host: "10.0.1.207",
port: 22,
localRoot: path.resolve('./dist/'),
remoteRoot: "/home/www/lingxi-business-system/dist/",
// include: ["*", "**/*"], // this would upload everything except dot files
include: ["*"],
// e.g. exclude sourcemaps, and ALL files in node_modules (including dot files)
// exclude: ["dist/**/*.map", "node_modules/**", "node_modules/**/.*", ".git/**"],
// delete ALL existing files at destination before uploading, if true
deleteRemote: true,
// Passive mode is forced (EPSV command is not sent)
forcePasv: true
})
},
v2: {
SITE_ID: '1',
BACK_GATEWAY: 'http://10.0.0.17:8100',
USE_ROUTE_CONFIG: true,
SOCKET_URL: 'ws://10.0.0.17:8100',
YAPI_URL: 'http://10.0.0.25:4000/',
ssh: JSON.stringify({
user: "root",
// Password optional, prompted if none given
password: "SsyLingxi@test666",
host: "10.0.0.17",
port: 22,
localRoot: path.resolve('./dist/'),
remoteRoot: "/home/www/lingxi/lingxi-business-system/dist/",
// include: ["*", "**/*"], // this would upload everything except dot files
include: ["*"],
// e.g. exclude sourcemaps, and ALL files in node_modules (including dot files)
// exclude: ["dist/**/*.map", "node_modules/**", "node_modules/**/.*", ".git/**"],
// delete ALL existing files at destination before uploading, if true
deleteRemote: true,
// Passive mode is forced (EPSV command is not sent)
forcePasv: true
})
},
v2Preview: {
SITE_ID: '1',
BACK_GATEWAY: 'http://10.0.1.220:8100',
YAPI_URL: 'http://10.0.0.25:4000/',
USE_ROUTE_CONFIG: true,
SOCKET_URL: 'ws://10.0.1.220:8100',
ssh: JSON.stringify({
user: "root",
// Password optional, prompted if none given
password: "Shushangyun520",
host: "10.0.1.220",
port: 22,
localRoot: path.resolve('./dist/'),
remoteRoot: "/home/www/lingxi/lingxi-business-system/dist/",
// include: ["*", "**/*"], // this would upload everything except dot files
include: ["*"],
// e.g. exclude sourcemaps, and ALL files in node_modules (including dot files)
// exclude: ["dist/**/*.map", "node_modules/**", "node_modules/**/.*", ".git/**"],
// delete ALL existing files at destination before uploading, if true
deleteRemote: true,
// Passive mode is forced (EPSV command is not sent)
forcePasv: true
})
},
v2Test: {
SITE_ID: '1',
BACK_GATEWAY: 'http://lx-pre-gateway.shushangyun.com',
USE_ROUTE_CONFIG: true,
SOCKET_URL: 'ws://lx-pre-gateway.shushangyun.com',
ssh: JSON.stringify({
user: "www",
// Password optional, prompted if none given
password: "Shushangyun520",
host: "120.24.6.245",
port: 22,
localRoot: path.resolve('./dist/'),
remoteRoot: "/usr/local/nginx/html/admin/",
// include: ["*", "**/*"], // this would upload everything except dot files
include: ["*"],
// e.g. exclude sourcemaps, and ALL files in node_modules (including dot files)
// exclude: ["dist/**/*.map", "node_modules/**", "node_modules/**/.*", ".git/**"],
// delete ALL existing files at destination before uploading, if true
deleteRemote: true,
// Passive mode is forced (EPSV command is not sent)
forcePasv: true
})
},
// 阿里云demo站更新
"v2-ali-demo": {
SITE_ID: '1',
BACK_GATEWAY: 'http://lingxi-scm-gateway.shushangyun.com',
USE_ROUTE_CONFIG: true,
SOCKET_URL: 'ws://lingxi-scm-gateway.shushangyun.com',
YAPI_URL: 'http://10.0.0.25:4000/'
},
// 0318 版本
"v2-220318": {
SITE_ID: '1',
BACK_GATEWAY: 'http://10.0.0.27:8100',
USE_ROUTE_CONFIG: true,
SOCKET_URL: 'ws://10.0.0.27:9880',
YAPI_URL: 'http://10.0.0.25:4000/'
},
// 0418 版本
"v2-220418-1": {
SITE_ID: '1',
BACK_GATEWAY: 'http://10.0.0.27:8100',
USE_ROUTE_CONFIG: true,
SOCKET_URL: 'ws://10.0.0.27:9880',
YAPI_URL: 'http://10.0.0.25:4000/'
},
// 0418 版本
"v2-220518": {
SITE_ID: '1',
BACK_GATEWAY: 'http://10.0.1.156:8100',
USE_ROUTE_CONFIG: true,
SOCKET_URL: 'ws://10.0.1.156:9880',
YAPI_URL: 'http://10.0.0.25:4000/'
},
"jinfa-0518": {
SITE_ID: '1',
BACK_GATEWAY: 'http://jinfa-gateway-test.shushangyun.com:12880',
USE_ROUTE_CONFIG: true,
SOCKET_URL: 'ws://jinfa-gateway-test.shushangyun.com:12880',
YAPI_URL: 'http://10.0.1.181:7070/'
}
},
'jinfa-0618': {
SITE_ID: '1',
BACK_GATEWAY: 'http://jinfa0618-gateway-test.shushangyun.com:12880',
USE_ROUTE_CONFIG: true,
SOCKET_URL: 'ws://jinfa0618-gateway-test.shushangyun.com:12880',
YAPI_URL: 'http://10.0.1.181:7070/'
},
}
......@@ -3,14 +3,6 @@
"version": "1.0.4",
"private": true,
"scripts": {
"upload:scm": "cross-env PRO_ENV=scm taskName=upload yarn scripts:build",
"upload:10": "cross-env PRO_ENV=10 taskName=upload yarn scripts:build",
"upload:25": "cross-env PRO_ENV=25 taskName=upload yarn scripts:build",
"upload:v2": "cross-env PRO_ENV=v2 taskName=upload yarn scripts:build",
"upload:v2-220318": "cross-env PRO_ENV=v2-220318 taskName=upload yarn scripts:build",
"upload:v2Preview": "cross-env PRO_ENV=v2Preview taskName=upload yarn scripts:build",
"upload:study": "cross-env PRO_ENV=study taskName=upload yarn scripts:build",
"upload:v2Test": "cross-env PRO_ENV=v2Test taskName=upload yarn scripts:build",
"api": "god-ytt",
"start:analyze": "ANALYZE=1 umi dev",
"scripts:build": "node scripts/run",
......@@ -19,39 +11,17 @@
"start": "yarn scripts:init && yarn api && yarn scripts:build && umi dev",
"start:dev": "umi dev",
"build": "yarn api && yarn scripts:build && yarn build:clean",
"build:yxc": "yarn api && yarn scripts:build-yxc && umi build",
"build:dev": "pm2 start scripts/devServer.js",
"build:analyze": "ANALYZE=1 umi build",
"build:clean": "cross-env NODE_OPTIONS=--max_old_space_size=8192 umi build",
"build:scm": "cross-env SITE_ID=1 BACK_GATEWAY=http://lingxi-scm.wg.shushangyun.com SOCKET_URL=ws://lingxi-scm.wg.shushangyun.com yarn build",
"build:all": "cross-env SITE_ID=1 BACK_GATEWAY=http://lingxi-all.wg.shushangyun.com SOCKET_URL=ws://lingxi-all.wg.shushangyun.com yarn build",
"build:10": "cross-env SITE_ID=1 BACK_GATEWAY=http://10.0.0.10:8100 SOCKET_URL=ws://10.0.0.10:9400 yarn build",
"build:v2": "cross-env PRO_ENV=v2 yarn build",
"build:v20318": "cross-env PRO_ENV=v2-0318 yarn build",
"build:v2-220418": "cross-env PRO_ENV=v2-220418 yarn build",
"build:v2Preview": "cross-env PRO_ENV=v2Preview SITE_ID=1 BACK_GATEWAY=http://10.0.1.220:8100 SOCKET_URL=ws://10.0.1.220:9400 yarn build",
"build:25": "cross-env SITE_ID=352 BACK_GATEWAY=http://10.0.0.25:8100 SOCKET_URL=ws://10.0.0.25:9400 yarn build",
"build:study": "cross-env SITE_ID=1 BACK_GATEWAY=http://10.0.1.207:8100 SOCKET_URL=ws://10.0.1.207:9400 yarn build",
"build:v2Test": "cross-env SITE_ID=1 BACK_GATEWAY=http://lx-pre-gateway.shushangyun.com USE_ROUTE_CONFIG=false SOCKET_URL=ws://lx-pre-gateway.shushangyun.com yarn build",
"build:v2-ali-demo": "cross-env PRO_ENV=v2-ali-demo yarn build",
"build:jinfa-0518": "cross-env PRO_ENV=jinfa-0518 yarn build",
"build:jinfa-0618": "cross-env PRO_ENV=jinfa-0618 yarn build",
"postinstall": "node scripts/init && umi generate tmp",
"prettier": "prettier --write '**/*.{js,jsx,tsx,ts,less,md,json}'",
"test": "umi-test",
"test:coverage": "umi-test --coverage",
"start:cross": "cross-env SITE_ID=352 SOCKET_URL=ws://10.0.0.25:9400 yarn start",
"start:cross-dev": "cross-env SITE_ID=352 SOCKET_URL=ws://10.0.0.25:9400 yarn start:dev",
"start:10": "cross-env SITE_ID=1 BACK_GATEWAY=http://10.0.0.10:8100 SOCKET_URL=ws://10.0.0.10:9400 yarn start",
"start:25": "cross-env SITE_ID=1 BACK_GATEWAY=http://10.0.0.25:8100 SOCKET_URL=ws://10.0.0.25:9400 yarn start",
"start:v2": "cross-env PRO_ENV=v2 yarn start",
"start:v2Preview": "cross-env PRO_ENV=v2Preview yarn start",
"start:v2Test": "cross-env SITE_ID=1 BACK_GATEWAY=http://lx-pre-gateway.shushangyun.com USE_ROUTE_CONFIG=false SOCKET_URL=ws://lx-pre-gateway.shushangyun.com yarn start",
"start:scm": "cross-env BACK_GATEWAY=http://lingxi-scm.wg.shushangyun.com SOCKET_URL=ws://lingxi-scm.wg.shushangyun.com SITE_ID=1 yarn start",
"start:study": "cross-env SITE_ID=1 BACK_GATEWAY=http://10.0.1.207:8100 SOCKET_URL=ws://10.0.1.207:9400 yarn start",
"start:v20318": "cross-env PRO_ENV=v2-0318 yarn start",
"start:v2-220418": "cross-env PRO_ENV=v2-220418 yarn start",
"start:v2-220518": "cross-env PRO_ENV=v2-220518 yarn start",
"start:jinfa-0518": "cross-env PRO_ENV=jinfa-0518 yarn start"
"start:jinfa-0518": "cross-env PRO_ENV=jinfa-0518 yarn start",
"start:jinfa-0618": "cross-env PRO_ENV=jinfa-0618 yarn start"
},
"lint-staged": {
"*.{js,jsx,less,md,json}": [
......
......@@ -4,25 +4,24 @@ if (!process.env.YAPI_URL) {
throw 'yapi链接不存在'
}
// 0418 token
const tokenList = [
{ name: 'LogisticsV2', token: '9d00f667e5f1ec2342134a3f1ecb27bc0e5b3cdaa46e4518d9cb04a2815f5baf', categoryIds: [0], }, // 物流能力v2
{ name: 'ProductV2', token: '3969a1870a57283277f8f906de4378dbe6c78591a8f46856c6647a49cab674cd', categoryIds: [0], }, // 商品服务V2
{ name: 'TemplateV2', token: 'e0c87762264d8d22c2dc7608a59a3e8fb78161623fe9395dba637c80ee840991', categoryIds: [0], }, // 页面模板服务V2
{ name: 'PayV2', token: '9aabf6ab41b0a5b5f8844354ffeec28bd9a6234e751f7b0f3d3388638a7e455a', categoryIds: [0], }, // 支付服务
{ name: 'SearchV2', token: 'acb675feb15638d9d663314b00d7ec238c67f29b26afdfcad6281c1e4e03a418', categoryIds: [0], }, // 搜索服务V2
{ name: 'PurchaseV2', token: 'dd7c05647654f518aa60222bafb2d50418f25f850c3f3b73c79aaf453977ce82', categoryIds: [0] }, // 采购服务V2
{ name: 'SettleV2', token: '173b40f541fb17d86881b25b342cfe49324ddbb32e96d2de48c9ea846fdaccd6', categoryIds: [0] }, // 结算服务v2
{ name: 'TransactionV2', token: '5f4d3bb2ee37c3f390bb09ef2ca5694bc978b6578239d50faf5ea579a9a1127a', categoryIds: [0] }, // 交易服务V2
{ name: 'ContractV2', token: 'cd3e8fe3c94af42c20871e45af4e5b9241bd1752f33944af7562bf7c74349659', categoryIds: [0] }, // 合同能力V2
{ name: 'OrderNewV2', token: 'f122746b38ea3c3d05e3e7ace587a8b6adc4d33395587f2f00beeb19868dc908', categoryIds: [0], }, //订单服务V2 New
{ name: 'MemberV2', token: '0984987df5e222fd023565733c55237c5dfc958242a42f16fb89635ec0c6ffd8', categoryIds: [0]}, //会员服务 V2
{ name: 'ReportV2', token: 'f1867444395ca36adeb619eb0442b46541b28103302cb0601dc400d986996a26', categoryIds: [0]}, // 报表服务v2 首页
{ name: 'EnhanceV2', token: 'f9e43d5e53eead45cd0d879550baede5d94c5e1b1cc224379348991bf20d5d5e', categoryIds: [0], }, // 加工服务v2
{ name: 'MessageV2', token: 'e23bc60cd7ab5512bbf757d8bcfead70c76e91d9b30fcc44ab79f06f0425ab4b', categoryIds: [0], }, // 消息中心v2
{ name: 'MarketingV2', token: '020f482a8ecb470a1ed8c99bcb1eb93b0e0ff5a1deba60f03a6942f9fe09caaa', categoryIds: [0], }, // 营销能力
{ name: 'AfterServiceV2', token: '9726648495299eae8b8f7ce291c64124cc36173fa5089684ac63fcd1ba1cff62', categoryIds: [0], }, // 售后能力V2
{ name: 'ManageV2', token: '986ed1501673515ce3cd47f952ae89f75f1ee51f5ec8c66fd96b2d3cb0222c14', categoryIds: [0] }, // 平台后台v2
{ name: 'LogisticsV2', token: '0a278f10ee9a690c970d225e63c7cefa1f185e53b975a2dc17ab2fdb32fb6d2b', categoryIds: [0], }, // 物流能力v2
{ name: 'ProductV2', token: '7beecba8c13d1bfb3f263948f846b7f0b9fbb56d39bab2ce2d5fb39393674e99', categoryIds: [0], }, // 商品服务V2
{ name: 'TemplateV2', token: 'b2c3c0f101b0194614652ff764a386006e00886d101176fb96da0a4c3f7d5027', categoryIds: [0], }, // 页面模板服务V2
{ name: 'PayV2', token: '751e8ed92879337eed7e4ba89b5b6dd7bd1dad1f6afdfb48d757e089915dbc38', categoryIds: [0], }, // 支付服务
{ name: 'SearchV2', token: 'b659b94d144a8db029649ff93627ad069e2f47b5b871de20c6449c2d195e2051', categoryIds: [0], }, // 搜索服务V2
{ name: 'PurchaseV2', token: 'a5ffa17a013e98b501f3699d34430e1f677349b6059eb40691d5ea3b3d0e4255', categoryIds: [0] }, // 采购服务V2
{ name: 'SettleV2', token: 'ebda80db64d1a886b5b72127c5f9301ac15b7f9d8099c00c12d0034665159be5', categoryIds: [0] }, // 结算服务v2
{ name: 'TransactionV2', token: '6cdb756a0a141012e96879263c76620b47055de8712fa3bcc6fbea2ebc9d2360', categoryIds: [0] }, // 交易服务V2
{ name: 'ContractV2', token: 'cca88aad9d6f2383ff6aee7dd6fb2a4eca153b3c6ccc7115d6f652d718e6229f', categoryIds: [0] }, // 合同能力V2
{ name: 'OrderNewV2', token: '45f23e61236ebccef5edfea895dfa32bd9301dc8795cf8aa6b81615bd75ffad7', categoryIds: [0], }, //订单服务V2 New
{ name: 'MemberV2', token: '77959f9f6053053bbac2ff2f6d5d583da2b71b2bebc7cabbfa8c82e8630aed9e', categoryIds: [0]}, //会员服务 V2
{ name: 'ReportV2', token: '80ade9724fe9d602c59715a77d940dea726fab59354ed526aecfb3e0c0d61527', categoryIds: [0]}, // 报表服务v2 首页
{ name: 'EnhanceV2', token: '8ea2dc6c681b5d55280256a3020fc83dd59a0c8d88909a5de7b8a0526e93037d', categoryIds: [0], }, // 加工服务v2
{ name: 'MessageV2', token: '99811f53028fb92f7a8c4f18b25355b348d887033b61cb69931cf874e22e54a6', categoryIds: [0], }, // 消息中心v2
{ name: 'MarketingV2', token: '6b2c04f5fc779eb3721f7df288c66783afea0eb01ee37130b6d45019f111162e', categoryIds: [0], }, // 营销能力
{ name: 'AfterServiceV2', token: 'e1dccd4c78f475d68469f27a1c44bfa716638153630e9fd0253b0945f5f083e1', categoryIds: [0], }, // 售后能力V2
{ name: 'ManageV2', token: '03c5ae960d90fe0d027f1a68ba5aca65ce7fb57a6f4e9ad935b2f3dd9b79cef7', categoryIds: [0] }, // 平台后台v2
]
const getConfigMap = (tokens) => tokens.map(v => ({
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment