mirror of
https://github.com/nuintun/command-manager.git
synced 2025-06-27 01:22:41 +08:00
update files
This commit is contained in:
parent
0c97e7ecb0
commit
b1afc52139
@ -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':
|
||||
|
Loading…
x
Reference in New Issue
Block a user