mirror of https://github.com/embarklabs/embark.git
Reset service local
This commit is contained in:
parent
24aecc553b
commit
71c5b75198
|
@ -179,7 +179,7 @@ class Test {
|
||||||
|
|
||||||
checkDeploymentOptions(options, callback) {
|
checkDeploymentOptions(options, callback) {
|
||||||
const self = this;
|
const self = this;
|
||||||
self.resetServices = false;
|
let resetServices = false;
|
||||||
const {host, port, type, accounts} = options.deployment || {};
|
const {host, port, type, accounts} = options.deployment || {};
|
||||||
|
|
||||||
if (host && port && !['rpc', 'ws'].includes(type)) {
|
if (host && port && !['rpc', 'ws'].includes(type)) {
|
||||||
|
@ -187,7 +187,7 @@ class Test {
|
||||||
}
|
}
|
||||||
|
|
||||||
if(accounts || port !== this.simOptions.port || type !== this.simOptions.type || host !== this.simOptions.host) {
|
if(accounts || port !== this.simOptions.port || type !== this.simOptions.type || host !== this.simOptions.host) {
|
||||||
self.resetServices = true;
|
resetServices = true;
|
||||||
}
|
}
|
||||||
if (accounts) {
|
if (accounts) {
|
||||||
self.simOptions.accounts = AccountParser.parseAccountsConfig(accounts, self.web3);
|
self.simOptions.accounts = AccountParser.parseAccountsConfig(accounts, self.web3);
|
||||||
|
@ -201,7 +201,7 @@ class Test {
|
||||||
type
|
type
|
||||||
});
|
});
|
||||||
|
|
||||||
if (!self.resetServices && !self.firstRunConfig) {
|
if (!resetServices && !self.firstRunConfig) {
|
||||||
return callback();
|
return callback();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue