Open cuongnv-ibl opened 6 years ago
find out because of customized pm2 instance_var
value in pm2.json config
Would be good if checking likes this parseInt(process.env[config.pm2InstanceVar]) === 0
Hi @cuongnv-ibl ,
Can you create a pull request to fix this issue?
I solves this issue in my new library https://github.com/Tomas2D/pm2-master-process, feel free to use it 👍
Reproduce
pm2 start pm2.json
isMaster always returnfalse