Commit 8b54f728 authored by 前端-许佳敏's avatar 前端-许佳敏

chore: 删除环境相关配置

parent 3c8e6976
......@@ -2,201 +2,11 @@
const path = require('path')
module.exports = {
scm: {
"srm": {
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/web/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: '352',
BACK_GATEWAY: 'http://10.0.0.25:8100',
BACK_GATEWAY: 'http://mjsrm-gateway-test.shushangyun.com:12880',
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-platform/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: "123456",
host: "10.0.0.17",
port: 22,
localRoot: path.resolve('./dist/'),
remoteRoot: "/home/www/studyMember/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:9880',
YAPI_URL: 'http://10.0.0.25:4000/',
// 注 交付中心同事可不使用下面的ssh配置
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/v2member/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',
USE_ROUTE_CONFIG: true,
SOCKET_URL: 'ws://10.0.1.220:8100',
YAPI_URL: 'http://10.0.0.25:4000/',
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-platform/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
})
},
v2scm: {
SITE_ID: '1',
BACK_GATEWAY: 'http://10.0.1.220:8100',
USE_ROUTE_CONFIG: true,
SOCKET_URL: 'ws://10.0.1.220: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/v2scm-member/",
// 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/platform/",
// 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-demo": {
SITE_ID: '1',
BACK_GATEWAY: 'http://lx-gateway.shushangyun.com:13880',
USE_ROUTE_CONFIG: true,
SOCKET_URL: 'ws://lx-gateway.shushangyun.com:13880',
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/v2scm-member/",
// 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',
SOCKET_URL: 'ws://mjsrm-gateway-test.shushangyun.com:12880',
YAPI_URL: 'http://10.0.0.25:4000/'
}
}
......@@ -2,54 +2,21 @@
"name": "lingxi-business-paltform",
"version": "1.0.4",
"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:study": "cross-env PRO_ENV=study taskName=upload yarn scripts:build",
"upload:v2": "cross-env PRO_ENV=v2 taskName=upload yarn scripts:build",
"upload:v2Preview": "cross-env PRO_ENV=v2Preview taskName=upload yarn scripts:build",
"upload:v2-demo": "cross-env PRO_ENV=v2-demo taskName=upload yarn scripts:build",
"upload:v2scm": "cross-env PRO_ENV=v2scm taskName=upload yarn scripts:build",
"upload:v2Test": "cross-env PRO_ENV=v2Test taskName=upload yarn scripts:build",
"api": "god-ytt",
"testApi": "cross-env PRO_ENV=v2 god-ytt",
"scripts:build": "node scripts/run",
"scripts:build-test": "cross-env PRO_ENV=v2 node scripts/run",
"start:dev": "cross-env NODE_OPTIONS=--max_old_space_size=4096 umi dev",
"start:analyze": "ANALYZE=1 umi dev",
"clean": "rimraf node_modules",
"start": "yarn api && yarn scripts:build && cross-env NODE_OPTIONS=--max_old_space_size=4096 UMI_ENV=local umi dev",
"start": "yarn api && cross-env NODE_OPTIONS=--max_old_space_size=4096 UMI_ENV=local umi dev",
"start-noApi": "yarn scripts:build && cross-env NODE_OPTIONS=--max_old_space_size=4096 UMI_ENV=local umi dev",
"build": "yarn && yarn api && yarn scripts:build && yarn build:clean",
"build-noApi": "yarn scripts:build && yarn build:clean",
"build:yxc": "yarn api && yarn scripts:build-yxc && umi build",
"build:analyze": "cross-env NODE_OPTIONS=--max_old_space_size=16384 ANALYZE=1 UMI_ENV=prod umi build",
"build:dev": "pm2 start scripts/devServer.js",
"build": "yarn && yarn api && yarn build:clean",
"build:clean": "cross-env NODE_OPTIONS=--max_old_space_size=16384 UMI_ENV=prod umi build",
"build:scm": "cross-env SITE_ID=1 BACK_GATEWAY=http://lingxi-scm.wg.shushangyun.com USE_ROUTE_CONFIG=false 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 USE_ROUTE_CONFIG=false 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 USE_ROUTE_CONFIG=false SOCKET_URL=ws://10.0.0.10:9400 yarn build",
"build:study": "cross-env SITE_ID=1 BACK_GATEWAY=http://10.0.1.207:8100 USE_ROUTE_CONFIG=false SOCKET_URL=ws://10.0.1.207:9400 yarn build",
"build:v2": "cross-env PRO_ENV=v2 yarn build",
"build:v2Preview": "cross-env PRO_ENV=v2Preview yarn build",
"build:v2scm": "cross-env PRO_ENV=v2scm yarn build",
"build:v2-demo": "cross-env PRO_ENV=v2-demo yarn build",
"build:v2-ali-demo": "cross-env PRO_ENV=v2-ali-demo 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:srm": "cross-env PRO_ENV=srm 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 USE_ROUTE_CONFIG=false SOCKET_URL=ws://10.0.0.25:9400 yarn start",
"start:scm": "cross-env SITE_ID=1 BACK_GATEWAY=http://lingxi-scm.wg.shushangyun.com USE_ROUTE_CONFIG=false SOCKET_URL=ws://lingxi-scm.wg.shushangyun.com yarn start",
"start:url": "cross-env SITE_ID=1 BACK_GATEWAY=http://lingxi-all.wg.shushangyun.com USE_ROUTE_CONFIG=true SOCKET_URL=ws://lingxi-all.wg.shushangyun.com yarn start",
"start:10": "cross-env SITE_ID=1 BACK_GATEWAY=http://10.0.0.10:8100 USE_ROUTE_CONFIG=true SOCKET_URL=ws://10.0.0.10:9400 yarn start",
"start:study": "cross-env SITE_ID=1 BACK_GATEWAY=http://10.0.1.207:8100 USE_ROUTE_CONFIG=false SOCKET_URL=ws://10.0.1.207:9400 yarn start",
"start:25": "cross-env SITE_ID=1 BACK_GATEWAY=http://10.0.0.25:8100 USE_ROUTE_CONFIG=true SOCKET_URL=ws://10.0.0.25:9400 yarn start",
"start:v2": "cross-env PRO_ENV=v2 yarn start",
"start-noApi:v2": "cross-env PRO_ENV=v2 yarn start-noApi",
"start:v2Preview": "cross-env PRO_ENV=v2Preview yarn start",
"start:v2scm": "cross-env PRO_ENV=v2scm yarn start"
"start:srm": "cross-env PRO_ENV=srm yarn start"
},
"lint-staged": {
"*.{js,jsx,less,md,json}": [
......@@ -121,35 +88,19 @@
"yorkie": "^2.0.0"
},
"devDependencies": {
"@linkseeks/god-upload-scp": "^1.0.0",
"@linkseeks/god-yapi2ts": "^1.0.0",
"@svgr/webpack": "^5.5.0",
"@types/lodash": "^4.14.177",
"@types/qrcode": "^1.3.4",
"@types/sortablejs": "^1.10.6",
"async": "^3.2.0",
"axios": "^0.19.2",
"babel-plugin-import": "^1.13.3",
"babel-plugin-transform-remove-console": "^6.9.4",
"case-sensitive-paths-webpack-plugin": "^2.4.0",
"chalk": "^4.1.0",
"clone": "^2.1.2",
"compression-webpack-plugin": "^9.0.0",
"connect-history-api-fallback": "^1.6.0",
"cross-env": "^7.0.3",
"events": "^3.2.0",
"express": "^4.17.1",
"fs-extra": "^9.0.1",
"glob": "^7.1.6",
"gulp": "^4.0.2",
"gulp-git": "^2.10.1",
"hard-source-webpack-plugin": "^0.13.1",
"http-proxy-middleware": "^1.0.5",
"json2ts": "^0.0.7",
"node-cmd": "^4.0.0",
"ora": "^4.0.4",
"scp2": "^0.1.0-b1",
"ssh2": "^0.8.9",
"util": "^0.12.3"
}
}
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