Release 1.0.0 [skip ci] 1.0.0 (2023-04-21)Features init first version (#1) (6d531ce)
Release 1.0.0
[skip ci]
egg application “Health Checker”
npm i egg-status
Enable egg-status plugin on config/plugin.ts.
config/plugin.ts
export default { status: { package: 'egg-status', enable: true, }, }
Use egg-scripts deploy your egg application.
Firstly, we need to import egg-scripts as dependencies:
egg-scripts
npm i egg-scripts
Then add npm scripts to package.json, create egg.status file after start and remove it before stop:
egg.status
{ "scripts": { "start": "egg-scripts start --daemon && touch egg.status", "stop": "rm -f egg.status && sleep 15 && egg-scripts stop" } }
Set “Health Check” on SLB, example on alicloud
Please let us know how can we help. Do check out issues for bug reports or suggestions first.
To become a contributor, please follow our contributing guide.
MIT
版权所有:中国计算机学会技术支持:开源发展技术委员会 京ICP备13000930号-9 京公网安备 11010802032778号
egg-status
egg application “Health Checker”
Install
Usage
Enable egg-status plugin on
config/plugin.ts.Use egg-scripts deploy your egg application.
Firstly, we need to import
egg-scriptsas dependencies:Then add npm scripts to package.json, create
egg.statusfile after start and remove it before stop:Set “Health Check” on SLB, example on alicloud
How to Contribute
Please let us know how can we help. Do check out issues for bug reports or suggestions first.
To become a contributor, please follow our contributing guide.
License
MIT