pm2/examples/keymetrics-test.js
2014-08-11 15:21:59 +02:00

29 lines
1.1 KiB
JavaScript

var pm2 = require('..');
pm2.connect(function() {
pm2.delete('all', function() {
pm2.start('examples/human_event.js', function() {
pm2.start('examples/child.js', {instances:2},function() {
pm2.start('examples/custom_action.js', function() {
pm2.start('examples/custom_action.js', {execMode : 'fork', force : true}, function() {
pm2.start('examples/auto-save.js', {execMode : 'fork', watch:true, force : true}, function() {
pm2.start('examples/custom_action_with_params.js', function() {
pm2.start('examples/auto-save.js', {watch : true,force:true, name :'auto-save-modify'}, function() {
pm2.start('examples/http-trace.js', {name:'trace'}, function() {
//pm2.start('examples/auto-bench.js', {instances : 'max'}, function() {
pm2.start('examples/throw.js', {name:'auto-throw'}, function() {
pm2.disconnect(function() { process.exit(1); });
});
//});
});
});
});
});
});
});
});
});
});
});