mirror of
https://github.com/status-im/embark-area-51.git
synced 2025-02-04 11:24:22 +00:00
use event for when engine is ready to deploy
This commit is contained in:
parent
47591a39dd
commit
c6b555af4e
@ -151,7 +151,7 @@ class Embark {
|
|||||||
engine.logger.info(__("Ready").underline);
|
engine.logger.info(__("Ready").underline);
|
||||||
engine.events.emit("status", __("Ready").green);
|
engine.events.emit("status", __("Ready").green);
|
||||||
});
|
});
|
||||||
|
engine.events.on('engine-ready', function () {
|
||||||
engine.deployManager.deployContracts(function (err) {
|
engine.deployManager.deployContracts(function (err) {
|
||||||
engine.startService("fileWatcher");
|
engine.startService("fileWatcher");
|
||||||
if (options.runWebserver) {
|
if (options.runWebserver) {
|
||||||
@ -162,6 +162,7 @@ class Embark {
|
|||||||
}
|
}
|
||||||
callback(err);
|
callback(err);
|
||||||
});
|
});
|
||||||
|
});
|
||||||
}
|
}
|
||||||
], function (err, _result) {
|
], function (err, _result) {
|
||||||
if (err) {
|
if (err) {
|
||||||
|
Loading…
x
Reference in New Issue
Block a user