mirror of https://github.com/embarklabs/embark.git
setupProxy should not be conditional on isDev
This commit is contained in:
parent
917757b04c
commit
eba9ce361e
|
@ -182,10 +182,10 @@ Blockchain.prototype.run = function() {
|
||||||
self.child.stderr.on('data', async (data) => {
|
self.child.stderr.on('data', async (data) => {
|
||||||
data = data.toString();
|
data = data.toString();
|
||||||
if (!self.readyCalled && data.indexOf('WebSocket endpoint opened') > -1) {
|
if (!self.readyCalled && data.indexOf('WebSocket endpoint opened') > -1) {
|
||||||
|
if (self.config.proxy) {
|
||||||
|
await self.setupProxy();
|
||||||
|
}
|
||||||
if (self.isDev) {
|
if (self.isDev) {
|
||||||
if (self.config.proxy) {
|
|
||||||
await self.setupProxy();
|
|
||||||
}
|
|
||||||
self.createFundAndUnlockAccounts((err) => {
|
self.createFundAndUnlockAccounts((err) => {
|
||||||
// TODO: this is never called!
|
// TODO: this is never called!
|
||||||
if(err) console.error('Error creating, unlocking, and funding accounts', err);
|
if(err) console.error('Error creating, unlocking, and funding accounts', err);
|
||||||
|
|
Loading…
Reference in New Issue