Skip to content
Search

PM2

lastmod 2024-08-09created 2017-02-0713 edits

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

See PM2:Example.

Projects

PM2 WebUI
https://github.com/suryamodulus/pm2-webui
  • Open-source alternative to PM2 Plus
  • 3P by xguru 2 hours ago | favorite | 1 comment
  • An open-source implementation of PM2 Plus, the paid tier of PM2, the process manager for Node.js, providing a web UI
    • Open-source PM2 offers only terminal-based monitoring, without a web UI
  • Provides Secure Login, App Management, Log Viewer, and a responsive UI

See also

Favorite site

author Zer0 sitemap