100% Free • Production-Ready
PM2 Config Generator
For Node.js Apps
Generate PM2 ecosystem configuration files with cluster mode, environment variables, and advanced process management settings.Perfect for production Node.js deployments.
Cluster Mode
Auto-Restart
Environment Vars
Multi-App Support
Quick Presets
Applications (1)
my-app
Basic Settings
Environment Variables
Development
Production
ecosystem.config.js
module.exports = {
"apps": [
{
"name": "my-app",
"script": "./server.js",
"instances": 1,
"exec_mode": "fork",
"watch": false,
"max_memory_restart": "1G",
"env": {
"NODE_ENV": "development",
"PORT": "3000"
},
"env_production": {
"NODE_ENV": "production",
"PORT": "3000"
},
"autorestart": true,
"max_restarts": 10,
"min_uptime": "10s"
}
]
};Usage:
pm2 start ecosystem.config.jspm2 start ecosystem.config.js --env productionPowerful Features
Everything you need for production Node.js deployments
Cluster Mode
Run multiple instances of your app across all CPU cores for maximum performance and reliability.
Auto-Restart
Automatic restart on crashes, file changes, and memory limits to keep your app running 24/7.
Environment Management
Separate development and production environment variables with easy switching between modes.
Deploy with PM2 Managed
Use Server Compass to deploy your Node.js applications with PM2 process management included.