We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
We must be able to interact with online processes (eg trigger commands, get results) via PM2 CLI or API:
Expose the ping function from inside your application:
var pmx = require('pmx'); pmx.action('ping', function(reply) { // Do stuff reply('pong'); });
Then via the PM2 CLI:
$ pm2 trigger <app_name|process_id> <action_name> [optional parameters]
Example:
$ pm2 trigger <app_name|process_id> ping
>>> pm2 trigger index ping 1 processes have received command ping [index:0]='pong'
The text was updated successfully, but these errors were encountered:
#2509 trigger functions inside your Node app from PM2 CLI
f57ee16
#2509 list available functions
437f081
Available on development branch:
$ npm install Unitech/pm2#development -g $ pm2 update
Sorry, something went wrong.
published on [email protected]
No branches or pull requests
Uh oh!
There was an error while loading. Please reload this page.
We must be able to interact with online processes (eg trigger commands, get results) via PM2 CLI or API:
Expose the ping function from inside your application:
Then via the PM2 CLI:
Example:
The text was updated successfully, but these errors were encountered: