Commit faa8a4db authored by 郭志伟's avatar 郭志伟

build: 调整启动命令

parent baa5b465
......@@ -15,6 +15,7 @@ npm.load(() => {
if (process.env.NODE_ENV === 'production') {
npm.run("start");
} else {
npm.run("ii");
npm.run("test");
}
});
......
......@@ -3,22 +3,23 @@
"version": "1.0.0",
"description": "低代码平台",
"scripts": {
"start": "cross-env NODE_ENV=production APOLLO_CLUSTER=3C egg-scripts start --port 9050 --workers 1",
"start:pre": "cross-env NODE_ENV=production APOLLO_CLUSTER=3PRE egg-scripts start --port 9050 --workers 1",
"test": "cross-env NODE_ENV=production EGG_SERVER_ENV=sit DEBUG=apollo APOLLO_CLUSTER=k8s NAMESPACE=qa2 egg-scripts start --port 80 --workers 1",
"start": "cross-env NODE_ENV=productionegg-scripts start --port 9050 --workers 1",
"start:pre": "cross-env NODE_ENV=production egg-scripts start --port 9050 --workers 1",
"test": "cross-env NODE_ENV=production EGG_SERVER_ENV=sit egg-scripts start --port 80 --workers 1",
"stop": "egg-scripts stop",
"backend": "nohup egg-scripts start --port 7001 --workers 4",
"dev": "egg-bin dev -r egg-ts-helper/register --port 7002",
"debug": "egg-bin debug -r egg-ts-helper/register",
"apollo": "cross-env NODE_ENV=production EGG_SERVER_ENV=sit DEBUG=apollo APOLLO_CLUSTER=k8s NAMESPACE=test1 node bin/apollo.js",
"apollo": "node bin/apollo.js",
"build": "cross-env NODE_ENV=production APOLLO_CLUSTER=3C npm run apollo && cross-env COS_ENV=production easy build --devtool",
"build:test": "cross-env NODE_ENV=production APOLLO_CLUSTER=k8s npm run apollo && cross-env COS_ENV=production easy build --devtool",
"build:pre": "cross-env NODE_ENV=production APOLLO_CLUSTER=3PRE npm run apollo && cross-env COS_ENV=production easy build --devtool",
"tsc": "ets && tsc -p tsconfig.json",
"clean": "ets clean",
"kill": "easy kill",
"lint": "tslint --project . -c tslint.json",
"fix": "tslint --fix --project . -c tslint.json 'app/**/*{.ts}'",
"ii": "npm install --registry https://registry.npm.taobao.org",
"ii": "rm -rf node_modules && npm install --registry http://npmprivate.quantgroups.com",
"changelog": "conventional-changelog -p angular -i CHANGELOG.md -s"
},
"dependencies": {
......
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