mirror of
https://github.com/node-red/node-red.git
synced 2025-03-01 10:36:34 +00:00
Provide notification when new flows deployed in the background
This commit is contained in:
@@ -135,10 +135,14 @@ function setFlows(_config,type,muteLog) {
|
||||
if (started) {
|
||||
return stop(type,diff,muteLog).then(function() {
|
||||
context.clean(activeFlowConfig);
|
||||
start(type,diff,muteLog);
|
||||
start(type,diff,muteLog).then(function() {
|
||||
events.emit("runtime-event",{id:"runtime-deploy",revision:flowRevision});
|
||||
});
|
||||
return flowRevision;
|
||||
}).otherwise(function(err) {
|
||||
})
|
||||
} else {
|
||||
events.emit("runtime-event",{id:"runtime-deploy",revision:flowRevision});
|
||||
}
|
||||
});
|
||||
}
|
||||
|
Reference in New Issue
Block a user