start webserver explicitly instead of implicitly

This commit is contained in:
Iuri Matias 2019-07-24 18:33:55 -04:00
parent 261dee8ad0
commit 821a3b8481
2 changed files with 11 additions and 24 deletions

View File

@ -76,14 +76,14 @@ class WebServer {
});
});
findNextPort(this.port).then((newPort) => {
this.server.port = newPort;
this.events.request('processes:launch', 'webserver', (_err, message, port) => {
this.logger.info(message);
this.port = port;
this.setServiceCheck();
});
});
// findNextPort(this.port).then((newPort) => {
// this.server.port = newPort;
// this.events.request('processes:launch', 'webserver', (_err, message, port) => {
// this.logger.info(message);
// this.port = port;
// });
// });
this.setServiceCheck();
this.events.on('check:wentOffline:Webserver', () => {
this.logger.info(__("Webserver is offline"));

View File

@ -176,25 +176,10 @@ class EmbarkController {
console.dir("outputDone")
engine.events.emit('outputDone');
});
})
});
// this.events.request('watcher:start');
// engine.startService("processManager");
// engine.startService("web3");
// engine.startService("coreProcess");
// engine.startService("blockchainListener");
// engine.startService("serviceMonitor");
// engine.startService("libraryManager");
// engine.startService("codeRunner");
// engine.startService("pipeline");
// engine.startService("deployment");
// engine.startService("storage");
// engine.startService("codeGenerator");
// engine.startService("console");
// engine.startService("cockpit");
// engine.startService("pluginCommand");
// engine.events.on('check:backOnline:Ethereum', function () {
// engine.logger.info(__('Ethereum node detected') + '..');
// engine.config.reloadConfig();
@ -220,6 +205,8 @@ class EmbarkController {
engine.startEngine(() => {
callback();
engine.events.request("webserver:start")
engine.events.request("config:contractsFiles", (contractsFiles) => {
engine.events.request("compiler:contracts:compile", contractsFiles, (err, compiledContracts) => {
console.dir("compilation done")