mirror of
https://github.com/Unitech/pm2.git
synced 2025-12-08 20:35:53 +00:00
16 lines
297 B
JavaScript
16 lines
297 B
JavaScript
|
|
var pmx = require('pmx').init({
|
|
http : true
|
|
});
|
|
|
|
var probe = pmx.probe();
|
|
|
|
var http = require('http');
|
|
|
|
var server = http.createServer(function(req, res) {
|
|
res.writeHead(200);
|
|
res.end('hey');
|
|
}).listen(process.env.PORT || 8000, function() {
|
|
console.log('App listening on port 8000');
|
|
});
|