PM2 Process Manager Plugin¶
Overview¶
The PM2 plugin integrates the PM2 Node.js process manager for managing Node.js, Python, and other application processes per website.
Plugin ID: pm2
PM2 Applications per Website¶
# List PM2 apps
GET /api/webapps/:id/pm2
# Create app
POST /api/webapps/:id/pm2
{
"name": "my-app",
"script": "app.js",
"cwd": "/home/example/public_html",
"interpreter": "node",
"env": { "NODE_ENV": "production", "PORT": "3000" }
}
# List directories (for file picker)
GET /api/webapps/:id/pm2/dirs
# List available scripts
GET /api/webapps/:id/pm2/scripts
# Actions: start, stop, restart, delete
POST /api/webapps/:id/pm2/:app/:action
# Live logs
GET /api/webapps/:id/pm2/:app/logs
# App info / details
GET /api/webapps/:id/pm2/:app/info
# PM2 startup (enable on boot)
POST /api/webapps/:id/pm2/startup
# Save PM2 process list
POST /api/webapps/:id/pm2/save
Quick Install Apps¶
Some quick install options require PM2: