بنقرة واحدة
pm2-process
PM2 process management for Node.js applications in production
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
القائمة
PM2 process management for Node.js applications in production
التثبيت باستخدام Codex أو Claude انسخ هذا Prompt والصقه في Codex أو Claude أو مساعد آخر ليراجع صفحة Skill ويثبّتها لك.
استنادا إلى تصنيف SOC المهني
Chrome DevTools automation for browser testing, debugging, and performance analysis
Clojure development workflows including REPL, deps.edn, testing, and linting
Docker Compose orchestration for multi-container applications
Full stack integration patterns connecting Clojure backend and React frontend
Git workflow management including branching, commits, PRs, and conflict resolution
OpenCode plugin development guidance including structure, events, tools, patterns, and best practices
| name | pm2-process |
| description | PM2 process management for Node.js applications in production |
| license | MIT |
| compatibility | opencode |
| metadata | {"audience":"devops","runtime":"node"} |
Use me when managing Node.js applications in production, especially when:
pm2 start app.js - Start applicationpm2 start ecosystem.config.js - Start with config filepm2 list - List all processespm2 logs - View logspm2 monit - Real-time monitoringpm2 reload all - Zero-downtime reloadpm2 restart app - Restart processpm2 stop all - Stop all processespm2 delete all - Remove all processesmodule.exports = {
apps: [{
name: 'my-app',
script: './dist/index.js',
instances: 'max',
exec_mode: 'cluster',
env: {
NODE_ENV: 'development',
PORT: 3000
},
env_production: {
NODE_ENV: 'production',
PORT: 8080
},
error_file: './logs/error.log',
out_file: './logs/out.log',
log_date_format: 'YYYY-MM-DD HH:mm:ss Z',
merge_logs: true,
autorestart: true,
max_memory_restart: '1G',
watch: false
}]
};
instances: 'max' for CPU coresinstances: 4 for fixed cluster sizeexec_mode: 'cluster' for multi-instanceexec_mode: cluster with load balancerpm2 install pm2-logrotatepm2 flush to clear logspm2 monit for real-time metricspm2-plus for advanced monitoringpmxpm2 reload instead of restart for zero downtimekill_timeout and wait_readyenv_production, env_staging).env filespm2 startup to generate startup scriptpm2 savenpm run build && pm2 start)pm2 deploy with git-based deploymentpm2 reload app --update-env