mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
15 lines
372 B
JavaScript
15 lines
372 B
JavaScript
var pmx = require('pmx');
|
|
var http = require('http');
|
|
|
|
http.createServer(function(req, res) {
|
|
res.end('Thanks');
|
|
}).listen(5445);
|
|
|
|
pmx.action('db:test', {comment: 'Simply test'}, function(reply) {
|
|
reply({test: "WOWOWOWOWOW", length: 12});
|
|
});
|
|
|
|
pmx.action('throw', {comment: 'Simply test'}, function(reply) {
|
|
throw { success : 'false', length: 12 };
|
|
});
|