mirror of
https://github.com/embarklabs/embark.git
synced 2025-02-20 01:18:52 +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.events.emit("status", __("Ready").green);
|
||||
});
|
||||
|
||||
engine.events.on('engine-ready', function () {
|
||||
engine.deployManager.deployContracts(function (err) {
|
||||
engine.startService("fileWatcher");
|
||||
if (options.runWebserver) {
|
||||
@ -162,6 +162,7 @@ class Embark {
|
||||
}
|
||||
callback(err);
|
||||
});
|
||||
});
|
||||
}
|
||||
], function (err, _result) {
|
||||
if (err) {
|
||||
|
Loading…
x
Reference in New Issue
Block a user