mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
28 lines
1.1 KiB
JavaScript
28 lines
1.1 KiB
JavaScript
|
|
var pm2 = require('../..');
|
|
|
|
pm2.connect(function() {
|
|
pm2.delete('all', function() {
|
|
pm2.start('examples/axm/pm2_probe.js', function() {
|
|
pm2.start('examples/axm/pm2_agent_probe.js', function() {
|
|
pm2.start('examples/axm/event.js', {force:true}, function() {
|
|
pm2.start('examples/axm/http_app.js', {force:true, instances:4},function() {
|
|
pm2.start('examples/axm/probes.js',function() {
|
|
pm2.start('examples/axm/custom_action.js', {force:true}, function() {
|
|
pm2.start('examples/axm/custom_action_with_params.js', {force:true, name : 'custom'} , function() {
|
|
pm2.start('examples/axm/http_transaction.js', {name:'trace', force:true}, function() {
|
|
pm2.start('examples/axm/throw.js', {name:'auto-throw', execMode : 'cluster_mode', force:true}, function() {
|
|
pm2.disconnect(function() { process.exit(1); });
|
|
});
|
|
});
|
|
});
|
|
});
|
|
});
|
|
});
|
|
|
|
});
|
|
});
|
|
});
|
|
});
|
|
});
|