pm2/test/fixtures/server-watch.bak.js
soyuka 5373dc54fa Added more sleep time to the watch restart
Commented the second test, it is not important but should work though, manually it works but programmatically the
server http var is undefined when file is changed ?!
2014-04-07 09:08:34 +02:00

7 lines
125 B
JavaScript

var http = require('http');
http.createServer(function(req, res) {
res.writeHead(200);
res.end('hey');
}).listen(8000);