-
Notifications
You must be signed in to change notification settings - Fork 6
Open
Description
Hello,
Does your pm2 support the config file as input paramter? Something like this: "pm2.start(configFile...", thanks a lot.
pm2.connect((err) => {
if (err) {
console.error('Error connecting to PM2:', err);
return reject(err);
}
pm2.start(configFile, (error, apps) => {
pm2.disconnect(); // Disconnects from PM2
if (error) {
console.error('Error starting app:', error);
return reject(error);
}
return resolve(apps);
});
return null;
});
Metadata
Metadata
Assignees
Labels
No labels