Skip to content

PM2

Advanced, production process manager for Node.js

Watchdog

PM2 can automatically restart your application when a file is modified in the current directory or its subdirectories:

$ pm2 start app.js --watch

Simple example

{
  "apps" : [{
    "name"   : "admin",
    "cwd"    : "/cycloud-admin",
    "script" : "app.js",
    "watch"  : true,
    "env"    : {
      "NODE_ENV" : "development"
    },
    "env_production" : {
      "NODE_ENV" : "production"
    }
  }, {
    "name"   : "hooka",
    "cwd"    : "/cycloud-admin",
    "script" : "hooka --port 3001"
  }]
}

with Hooka example

PM2:Example 항목 참조.

Projects

PM2 WebUI
https://github.com/suryamodulus/pm2-webui
  • PM2 Plus의 오픈소스 대체제
  • 3P by xguru 2시간전 | favorite | 댓글 1개
  • Node.js 용 프로세스 매니저 PM2의 유료 Tier인 PM2 Plus를 오픈소스로 구현해서 웹 UI를 제공
    • PM2 오픈소스는 웹 UI 없이 터미널 기반 모니터링만 제공
  • Secure Login, App Management, Log Viewer 및 반응형 UI 제공

See also

Favorite site