From e84bc39b832ea69a088b03ab303d5eed2aa2fc9c Mon Sep 17 00:00:00 2001 From: "Eslam A. Hefnawy" Date: Wed, 9 Aug 2017 20:33:37 +0700 Subject: [PATCH] install local emulator if functions not deployed --- lib/plugins/run/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugins/run/index.js b/lib/plugins/run/index.js index 8b0120fc8..ee0f3e37c 100644 --- a/lib/plugins/run/index.js +++ b/lib/plugins/run/index.js @@ -88,7 +88,7 @@ class Run { return BbPromise.resolve(); }) .then(() => { - if (!localEmulatorInstalled()) { + if (!functionsDeployed && !localEmulatorInstalled()) { this.logServerless('Installing Local Emulator...'); installLocalEmulator(); }