JSON vs. JavaScript vs. YAML
PM2 supporting all three document sort given that the base for the application definitions and modification. Decide your preferred 1 and hire it, there aren’t any great things about determining for just one or any other.
Wea€™re fans of JSON and certainly will show off your all suggestions in JSON type. Just embrace the snippets to JS or YAML.
Configure Multi Software in one JSON Document
Within an earlier circulated tutorial, onea€™ve previously watched PM2a€™s ability to handle sophisticated program setups using a JSON data. Youa€™ve a large number of choices to personalize the activities of your respective purposes managed by PM2.
Within the JSON file, PM2 uses the software critical as basis for a summary of stated solutions. Different each software into an object and provide the specified choice with particular ideals. Here situation defines three methods: futurestudio-homepage , futurestudio-worker and futurestudio-api . All three tasks have their particular access point (JS file) that is definitely referenced since benefits for program .
pm2-apps.json
PM2 requires you to definitely create a minimum of title and software qualities effectively address and initiate the described tool. The worthiness for label is going to be made use of by PM2 as a reference into adam4adam mobile the procedure and is special. Read more