Within this article, we’re going to explore an advanced way to declare and start your applications. If you read the previous article on process management with PM2, you’re familiar with starting applications from command line. PM2 offers another way to start applications: by using an app declaration file in JSON format.
This JSON app file allows you to specify the application configuration within a single file.
Let’s first get an impression how a JSON app declaration file looks like. We call this file: apps.json.