Skip to content

Commit

Permalink
Fix: pm2 using
Browse files Browse the repository at this point in the history
  • Loading branch information
bugsounet committed Oct 27, 2024
1 parent 804ad10 commit 1638e15
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion components/controler.js
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ class Controler {
return;
}
list.forEach((pm) => {
if (pm.pm2_env.version === global.version && pm.pm2_env.status === "online" && process.env.unique_id === pm.pm2_env.unique_id) {
if (pm.pm2_env.status === "online" && process.env.name === pm.name && +process.env.pm_id === +pm.pm_id) {
this.usePM2 = true;
this.PM2Process = pm.name;
console.log("[GA] You are using PM2 with", this.PM2Process);
Expand Down

0 comments on commit 1638e15

Please sign in to comment.