pm2/test/fixtures/watcher/server-watch.bak.js
Antoine Bluchet 506c7146e4 Watch refactor: improve tests, paths resolving
- move tests from bash to js
- removed `pm2_env`.watch path resolving in favor of chokidar `cwd`
  option ([see here](https://github.com/paulmillr/chokidar/blob/master/CHANGELOG.md#chokidar-100-7-april-2015)) (fix #1577)
- if watch is a boolean, path is set to process cwd (`pm2_env.pm_cwd`) (keep #1578 coverage)
2015-09-03 23:43:13 +02:00

7 lines
125 B
JavaScript

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