Browse Source

update healthcheck

DevYK 3 years ago
parent
commit
808d64b5ac
2 changed files with 3 additions and 3 deletions
  1. 1 1
      README.md
  2. 2 2
      routes/users.js

+ 1 - 1
README.md

@@ -23,7 +23,7 @@ NODE_ENV=prd pm2 start bin/www
 
 健康检查
 ```
-http://localhost:3000/nenet
+http://localhost:3000/healthcheck
 ```
 进入 server 看 log
 ```shell

+ 2 - 2
routes/users.js

@@ -1,7 +1,7 @@
 var router = require('koa-router')();
-router.prefix('/nenet');
+router.prefix('/healthcheck');
 router.get('/', async (ctx)=>{
-    console.log('nenet',process.env.NODE_ENV)
+    console.log('healthcheck',process.env.NODE_ENV)
     ctx.body = 'hell denet node server' 
 })
 module.exports = router;