{
  "apps": [

    {
      "name": "feeder.lol-item-sets-generator.org",
      "script": "dist/index.js",
      "env": {
        "NODE_ENV": "production",
        "HOST": "http://domain.tld",
        "CRON_GENERATOR": "0 */2 * * *", // Every 2 hours
        "MONGO_URI": "mongodb://localhost:27017/lol-item-sets-generator-org",
        "KEY_CHAMPIONGG": "API_KEY",
        "KEY_RIOT": "API_KEY",
        "PORT": 9000
      },
      "args": ["--release"],
      "watch": false,
    }

  ]

}


Add development option in pm2 config file.
{
  "apps": [

    {
      "name": "feeder.lol-item-sets-generator.org",
      "script": "dist/index.js",
      "env_development": {
        "NODE_ENV": "development",
        "HOST": "http://domain.tld",
        "CRON_GENERATOR": "0 */2 * * *", // Every 2 hours
        "MONGO_URI": "mongodb://localhost:27017/lol-item-sets-generator-org",
        "KEY_CHAMPIONGG": "API_KEY",
        "KEY_RIOT": "API_KEY",
        "PORT": 9000
      },
      "env_production": {
        "NODE_ENV": "production",
        "HOST": "http://domain.tld",
        "CRON_GENERATOR": "0 */2 * * *", // Every 2 hours
        "MONGO_URI": "mongodb://localhost:27017/lol-item-sets-generator-org",
        "KEY_CHAMPIONGG": "API_KEY",
        "KEY_RIOT": "API_KEY",
        "PORT": 9000
      },
      "args": ["--release"],
      "watch": false,
    }

  ]

}