From dd82a01b65625dee8eeec7f6c9fc4fc89e33f5e7 Mon Sep 17 00:00:00 2001 From: Pascal Precht Date: Tue, 3 Sep 2019 17:59:00 +0200 Subject: [PATCH] fix(@embark/cmd_controller): ensure namesystem is set up in console command (#1822) This caused the console command to hang --- packages/embark/src/cmd/cmd_controller.js | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/packages/embark/src/cmd/cmd_controller.js b/packages/embark/src/cmd/cmd_controller.js index afd756abb..32828004f 100644 --- a/packages/embark/src/cmd/cmd_controller.js +++ b/packages/embark/src/cmd/cmd_controller.js @@ -440,6 +440,7 @@ class EmbarkController { engine.registerModuleGroup("contracts"); engine.registerModuleGroup("pipeline"); engine.registerModuleGroup("communication"); + engine.registerModuleGroup("namesystem"); engine.registerModulePackage('embark-deploy-tracker', {plugins: engine.plugins}); engine.registerModuleGroup("blockchain"); @@ -459,7 +460,8 @@ class EmbarkController { try { await Promise.all([ engine.events.request2("blockchain:node:start", engine.config.blockchainConfig), - engine.events.request2("communication:node:start", engine.config.communicationConfig) + engine.events.request2("communication:node:start", engine.config.communicationConfig), + engine.events.request2("namesystem:node:start", engine.config.namesystemConfig) ]); } catch (e) { return cb(e); @@ -540,6 +542,7 @@ class EmbarkController { engine.registerModuleGroup("filewatcher"); engine.registerModuleGroup("storage"); engine.registerModuleGroup("communication"); + engine.registerModuleGroup("namesystem"); engine.registerModulePackage('embark-deploy-tracker', {plugins: engine.plugins}); engine.registerModulePackage('embark-plugin-cmd', {embarkConfigFile: engine.embarkConfig, embarkConfig: engine.config.embarkConfig, packageFile: 'package.json'}); callback(); @@ -556,7 +559,8 @@ class EmbarkController { try { await Promise.all([ engine.events.request2("storage:node:start", engine.config.storageConfig), - engine.events.request2("communication:node:start", engine.config.communicationConfig) + engine.events.request2("communication:node:start", engine.config.communicationConfig), + engine.events.request2("namesystem:node:start", engine.config.namesystemConfig) ]); } catch (e) { return cb(e);