PM2 command to run ecosystem file

Once the file is properly configured in JSON format, run this command:

pm2 start ecosystem.json

The output should be similar to this:

[PM2] Applying action restartProcessId on app [x509](ids: [ 0 ])
[PM2] [x509](0) ✓
┌───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ id │ name │ namespace │ version │ mode │ pid │ uptime │ ↺ │ status │ cpu │ mem │ user │ watching │
├───────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────────
│ 0 │ x509 │ default │ 7.6.2 │ fork │ 13801 │ 1s │ 0 │ online │ 10.3% │ 34.3mb │ terminator │ disabled │
└─────┴───────────────┴─────────────┴─────────┴─────────┴──────────┴────────┴──────┴───────────┴──────────┴──────────┴──────────┴──────────┘

Sources:

Leave a Comment

Your email address will not be published. Required fields are marked *