pm2/examples/axm/auto-init.js
2015-02-03 19:34:18 -05:00

15 lines
273 B
JavaScript

var pmx = require('pmx').init();
var http = require('http');
http.createServer(function(req, res) {
res.writeHead(200);
res.end('hey');
}).listen(8005);
pmx.action('refresh:db2', {comment : 'Refresh main database'}, function(reply) {
throw new Error('hey');
});