/
githubmirror
/
pm2
Обзор
Документация
Войти
/
githubmirror
/
pm2
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
master
test/fixtures/startProcessInsidePm2.js
26 строк
405 B
Unitech
#2176 #2175 keep compatibility with PM2 v1 API + change independant to independent + adapt tests
02 июл 2016, 14:52
02 июл 2016, 14:52
227c742
Код
Авторство
О чём код?
var PM2 = require('../..'); /** * New gen API */ var pm2 = new PM2.custom(); //console.log(process.env); pm2.connect(function(err) { console.error(' ----------------------' ); pm2.start('./insidePm2Process.js', { name: 'insideProcess', 'output': './inside-out.log', merge_logs: true }, function(err, proc){ if(err){ console.log(err); return process.exit(1); } }); });