mirror of https://github.com/embarklabs/embark.git
start webserver explicitly instead of implicitly
This commit is contained in:
parent
261dee8ad0
commit
821a3b8481
|
@ -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"));
|
||||
|
|
|
@ -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")
|
||||
|
|
Loading…
Reference in New Issue