- watchdog 部署工具只保留 install / uninstall:uninstall 先备份到
/tmp/qimen-watchdog-uninstall-<时间戳>/(cp -a 保留权限/时间),再**注销调度**
—— 删除 /etc/cron.d/qimen-watchdog 并清理 root crontab 中残留的 qimen-watchdog 行
(历史手工安装可能留过,双跑会并发 kill/start 同一实例),随后删除服务器副本
<部署根>/script/qimen-watchdog.sh 及其 .prev-* / .legacy-* 与历史根目录副本;
不碰日志、锁文件与接口服务进程;支持 --dry-run 只打印计划。
原 precheck 的只读环境快照改为 install 开头自动打印;status / dry-run / run
三个命令删除(需要时直接 ssh 执行 <部署根>/script/qimen-watchdog.sh --dry-run)。
- 移除失效的 deploy:gateway-probe:npm 脚本未传必需的 method 位置参数,而
gatewayProbe() 在缺参时直接抛错,命令必然 exit 1(CLI 契约与 npm 接线不匹配,
该命令从未能成功)。删除 npm 命令与 script/deploy-ops.cjs 中的 gatewayProbe 实现;
需要网关真实探活时直连活跃端口(current.md:v1→6061 / v2→6062)。
- 两份发布 agent 文档中的 "npm run deploy:gateway-probe -- releaseProbe.ping {}"
已删除 —— 其中的 releaseProbe.ping 这个 method 在应用内并不存在(双重失效),
改为「直连活跃端口」的说明;README 同步运维命令清单与 watchdog 卸载说明。
- 顺手修掉 script/deploy-ops.cjs 两处历史 lint 问题(模板字符串改单引号、
文件末尾补换行),该文件 lint 现已干净。
97 lines
4.1 KiB
JSON
97 lines
4.1 KiB
JSON
{
|
|
"name": "wms",
|
|
"version": "1.0.0",
|
|
"description": "奇门wms",
|
|
"private": true,
|
|
"egg": {
|
|
"declarations": true
|
|
},
|
|
"dependencies": {
|
|
"await-stream-ready": "^1.0.1",
|
|
"cos-js-sdk-v5": "^1.10.1",
|
|
"cos-nodejs-sdk-v5": "^2.15.4",
|
|
"crypto-js": "^4.2.0",
|
|
"egg": "^3.17.5",
|
|
"egg-cors": "^3.0.1",
|
|
"egg-jwt": "^3.1.7",
|
|
"egg-mysql": "^5.0.0",
|
|
"egg-redis": "^2.6.1",
|
|
"egg-scripts": "2",
|
|
"egg-sequelize": "^6.0.0",
|
|
"egg-view-ejs": "^3.0.0",
|
|
"ejs": "^5.0.1",
|
|
"exceljs": "^4.4.0",
|
|
"fast-xml-parser": "^5.3.1",
|
|
"mysql2": "^3.15.3",
|
|
"path": "^0.12.7",
|
|
"qiniu-js": "^3.4.3",
|
|
"soap": "^1.8.0",
|
|
"spark-md5": "^3.0.2",
|
|
"xlsx": "^0.18.5"
|
|
},
|
|
"devDependencies": {
|
|
"egg-bin": "6",
|
|
"egg-mock": "5",
|
|
"eslint": "8",
|
|
"eslint-config-egg": "13",
|
|
"sequelize-cli": "^6.6.3"
|
|
},
|
|
"engines": {
|
|
"node": ">=18.0.0"
|
|
},
|
|
"scripts": {
|
|
"start": "egg-scripts start ",
|
|
"stop": "node ./app/lib/stop_current_egg.js",
|
|
"dev": "egg-bin dev --port=6060",
|
|
"frpc:install": "powershell -ExecutionPolicy Bypass -File ./script/frp/frp-install.ps1",
|
|
"frpc:start": "powershell -ExecutionPolicy Bypass -File ./script/frp/frp-start.ps1",
|
|
"file-writer:pressure": "node ./temp/generated-tests/file-writer-pressure.generated.test.cjs",
|
|
"debug:webhook:receiver": "node ./script/debug-webhook-receiver.cjs",
|
|
"debug:webhook:receiving": "node ./script/debug-send-receiving-webhooks.cjs",
|
|
"debug:warehouse:push-receiver": "node ./script/debug-warehouse-push-receiver.cjs",
|
|
"doc:api:update": "node ./script/update-api-doc.cjs",
|
|
"doc:api:update:dry": "node ./script/update-api-doc.cjs --dry-run",
|
|
"deploy:precheck": "node ./script/deploy-precheck.cjs",
|
|
"deploy:authcheck": "node ./script/deploy-auth-check.cjs",
|
|
"deploy:version": "node ./script/deploy-version.cjs production",
|
|
"deploy:version:history": "node ./script/deploy-version.cjs production --history=20",
|
|
"deploy:inspect": "node ./script/deploy-ops.cjs production inspect",
|
|
"deploy:smoke": "node ./script/deploy-ops.cjs production smoke",
|
|
"deploy:verify": "node ./script/deploy-ops.cjs production verify",
|
|
"deploy:cleanup-backups": "node ./script/deploy-ops.cjs production cleanup-backups",
|
|
"deploy:cert-sync:install": "node ./script/deploy-cert-sync.cjs production install",
|
|
"deploy:cert-sync:uninstall": "node ./script/deploy-cert-sync.cjs production uninstall",
|
|
"deploy:watchdog:install": "node ./script/deploy-watchdog.cjs production install",
|
|
"deploy:watchdog:uninstall": "node ./script/deploy-watchdog.cjs production uninstall",
|
|
|
|
"ops:check-root-logs": "node ./script/check-root-logs.cjs",
|
|
"ops:clean-root-logs": "node ./script/check-root-logs.cjs production --clean",
|
|
"ops:clean-root-logs:apply": "node ./script/check-root-logs.cjs production --clean --apply",
|
|
"version:record": "node ./script/version-record.cjs",
|
|
"version:history": "node ./script/version-history.cjs --limit=50",
|
|
"deploy": "npm run deploy:prod",
|
|
"deploy:prod": "node ./script/deploy-remote.cjs production",
|
|
"rollback": "npm run rollback:prod",
|
|
"rollback:prod": "node ./script/rollback-remote.cjs production",
|
|
"guard:git": "node ./script/git-safety-check.cjs",
|
|
"setup:hooks": "node ./script/setup-git-hooks.cjs",
|
|
"test": "npm run lint -- --fix && npm run test:local",
|
|
"test:local": "egg-bin test",
|
|
"test:dispatch-factory": "egg-bin test test/app/model/order_delivery_dispatch_factory.test.js",
|
|
"cov": "egg-bin cov",
|
|
"lint": "eslint .",
|
|
"migration:single": "node ./script/run-single-migration.cjs",
|
|
"db:update-stock-weight": "node ./script/update-stock-warehouse-weight.cjs",
|
|
"db:update-stock-weight:dry": "node ./script/update-stock-warehouse-weight.cjs --dry-run",
|
|
"permission:sync:system-api": "node ./script/sync-system-api-permission.cjs",
|
|
"check:model-boundary": "node ./script/model-boundary-check.cjs",
|
|
"ci": "npm run lint && npm run check:model-boundary && npm run cov"
|
|
},
|
|
"repository": {
|
|
"type": "git",
|
|
"url": ""
|
|
},
|
|
"author": "刘付明仁",
|
|
"license": "MIT"
|
|
}
|