pm2-io-js-api
pm2-io-js-api copied to clipboard
start/stop pm2 actions don't work
I'm trying to control a remote app (start and stop) and it doesn't work as expected, here is a sample:
const pm2io = new PM2IO();
pm2io.use('standalone', { refresh_token: 'foo-token' });
const response = await pm2io.actions.triggerPM2Action('bar-bucket', {
server_name: 'foo-server',
app_name: 'bar-app,
method_name: 'stop',
});
console.log('Response:', response.data);
The code ^ runs w/o issues and the returned data indicates success ({ success: true }), but the operations are not getting executed. Sending restart with the example ^ works w/o issues, it's only start/stop that are not responsive