mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
15 lines
273 B
JavaScript
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');
|
|
});
|