Skip to content

Commit

Permalink
feat: add health checker for slb (#445)
Browse files Browse the repository at this point in the history
closes #444
  • Loading branch information
fengmk2 committed Apr 21, 2023
1 parent e26299a commit 4dcfe89
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 4 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/nodejs.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [16, 18]
node-version: [16, 18, 20]
os: [ubuntu-latest]

steps:
Expand Down Expand Up @@ -83,7 +83,7 @@ jobs:
strategy:
fail-fast: false
matrix:
node-version: [16, 18]
node-version: [16, 18, 20]
os: [ubuntu-latest]

steps:
Expand Down
4 changes: 4 additions & 0 deletions config/plugin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,10 @@ const plugin: EggPlugin = {
enable: true,
package: 'egg-cors',
},
status: {
enable: true,
package: 'egg-status',
},
};

export default plugin;
5 changes: 3 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@
"tsc": "npm run clean && tsc -p ./tsconfig.json",
"tsc:prod": "npm run clean && tsc -p ./tsconfig.prod.json",
"prepublishOnly": "npm run tsc:prod",
"start": "eggctl start --daemon",
"stop": "eggctl stop"
"start": "eggctl start --daemon && touch egg.status",
"stop": "rm -f egg.status && sleep 15 && eggctl stop"
},
"repository": {
"type": "git",
Expand Down Expand Up @@ -88,6 +88,7 @@
"egg-errors": "^2.3.0",
"egg-redis": "^2.4.0",
"egg-scripts": "^2.15.2",
"egg-status": "^1.0.0",
"egg-tracer": "^1.1.0",
"egg-typebox-validate": "^2.0.0",
"egg-view-nunjucks": "^2.3.0",
Expand Down

0 comments on commit 4dcfe89

Please sign in to comment.