update files

This commit is contained in:
nuintun 2015-12-03 10:22:15 +08:00
parent 0c97e7ecb0
commit b1afc52139

View File

@ -33,7 +33,7 @@ module.exports = {
switch (action) {
case 'start':
if (!worker) {
if (!worker || worker.isDead()) {
var env = {};
Object.keys(process.env).forEach(function (key){
@ -59,6 +59,10 @@ module.exports = {
worker.send(project);
workers[project.name] = worker;
} else {
delete project.env;
worker.send(project);
}
break;
case 'stop':