Search code examples
pm2

PM2: ecosystem.json vs. process.json


Reading the PM2 documentation, I've paid attention that in some cases ecosystem.json is mentioned, while in other — process.json.

How are both these files related to each other and which one should I use for the PM2 configuration?

P.S. Some tutorials refer to the PM2 configuration file as apps.json.


Solution

  • Preferred way, as of today is to use a js file, called ecosystem.config.js.

    Refer to updated documentation here: https://pm2.keymetrics.io/docs/usage/application-declaration/