[root@beautiful-bytes-2 NodeWebhooks]# pm2 start webhook.js [PM2] Applying action restartProcessId on app [webhook](ids: 0) [PM2] [webhook](0) ✓ [PM2] Process successfully started ┌─────┬────────────┬─────────────┬─────────┬─────────┬──────────┬────────┬──────┬───────────┬──────────┬──────────┬──────────┬──────────┐ │ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │ ├─────┼────────────┼─────────────┼─────────┼─────────┼──────────┼────────┼──────┼───────────┼──────────┼──────────┼──────────┼──────────┤ │ 0 │ webhook │ default │ 1.0.0 │ fork │ 16548 │ 0s │ 3 │ online │ 0% │ 8.3mb │ root │ disabled │ └─────┴────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘
#查看启动日志 pm2 logs
0|webhook | 0|webhook | Received a push event for fuguiliu.github.io to refs/heads/master 0|webhook | deploy master.. 0|webhook | stderr: Cannot pull with rebase: Your index contains uncommitted changes. 0|webhook | Please commit or stash them. 0|webhook | 0|webhook | 0|webhook | Received a push event for fuguiliu.github.io to refs/heads/master 0|webhook | deploy master.. 0|webhook | 0|webhook | stderr: shell-init: error retrieving current directory: getcwd: cannot access parent directories: No such file or directory 0|webhook | sh: ./deploy.sh: No such file or directory 0|webhook | 0|webhook | WebHooks Listern at 15535 0|webhook | WebHooks Listern at 15535