tutv / pm2-master

PM2 is master
https://goo.gl/okJy3o
1 stars 0 forks source link

don't work if start process with pm2 config #2

Open cuongnv-ibl opened 6 years ago

cuongnv-ibl commented 6 years ago

Reproduce

cuongnv-ibl commented 6 years ago

find out because of customized pm2 instance_var value in pm2.json config

cuongnv-ibl commented 6 years ago

Would be good if checking likes this parseInt(process.env[config.pm2InstanceVar]) === 0

tutv commented 6 years ago

Hi @cuongnv-ibl ,

Can you create a pull request to fix this issue?

Tomas2D commented 2 years ago

I solves this issue in my new library https://github.com/Tomas2D/pm2-master-process, feel free to use it 👍