install local emulator if functions not deployed

This commit is contained in:
Eslam A. Hefnawy 2017-08-09 20:33:37 +07:00
parent 41c01b6989
commit e84bc39b83

View File

@ -88,7 +88,7 @@ class Run {
return BbPromise.resolve();
})
.then(() => {
if (!localEmulatorInstalled()) {
if (!functionsDeployed && !localEmulatorInstalled()) {
this.logServerless('Installing Local Emulator...');
installLocalEmulator();
}