/
githubmirror
/
pm2
Обзор
Документация
Войти
/
githubmirror
/
pm2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixtures/pm2-dev/app.js
16 строк
358 B
Daniel Bayerlein
Add test for pm2-dev with args
30 сен 2016, 17:06
30 сен 2016, 17:06
86af1f5
Код
Авторство
О чём код?
var http = require('http'); http.createServer(function(req, res) { res.writeHead(200); res.end('hey'); }).listen(0); process.on('message', function(msg) { if (msg == 'shutdown') { console.log('Closing all connections...'); setTimeout(function() { console.log('Finished closing connections'); process.exit(0); }, 100); } });