PMT
PMT is a process manager for node.js.
Brief
- PMT is still developing.
- PMT haven't tested in windows.
- Will release v1.0.0 when Stable.
- Thanks for testing.
- If you have any suggestions, please send email to 277501642@qq.com or create new issue.
Installation
$ npm install pmt -g
Example
See test/test.js and test/index.js to use pmt.
test.js
var pmt = require('pmt');
pmt.start({
'name' : 'myTitan',
'entrance' : 'index.js',
'worker_count' : 0,
'args' : '--harmony',
'max_momery' : '128',
'auto_restart' : false
},function (){
pmt.disconnect();
});
index.js
var net = require('net');
var server = net.createServer(function(c) {
c.write('hello world');
c.end();
});
server.listen(8080);
node
$ node test.js
Command
$ npm install pmt --save
$ npm install pmt -g
$ pmt start [appName]/all
$ pmt stop [appName]/all
$ pmt kill
$ pmt reboot
$ pmt restart [appName]/all
$ pmt grestart [appName]/all
$ pmt list
$ pmt monit
$ pmt logs
$ pmt daemonlogs
Design document(Adding)
Pmt framework
License
MIT