From e599f5717851804887eee832ca7908b2639809dd Mon Sep 17 00:00:00 2001 From: bhaskarbalusani <42063253+bhaskarbalusani@users.noreply.github.com> Date: Fri, 3 Aug 2018 15:45:28 +0530 Subject: [PATCH 1/3] Update index.js --- lib/plugins/aws/invokeLocal/index.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lib/plugins/aws/invokeLocal/index.js b/lib/plugins/aws/invokeLocal/index.js index cb633580a..40a15ea00 100644 --- a/lib/plugins/aws/invokeLocal/index.js +++ b/lib/plugins/aws/invokeLocal/index.js @@ -174,7 +174,7 @@ class AwsInvokeLocal { return new BbPromise(resolve => { const python = spawn(runtime, - ['-u', path.join(__dirname, 'invoke.py'), handlerPath, handlerName], { env: process.env }); + ['-u', path.join(__dirname, 'invoke.py'), handlerPath, handlerName], { env: process.env }, { shell: true }); python.stdout.on('data', (buf) => this.serverless.cli.consoleLog(buf.toString())); python.stderr.on('data', (buf) => this.serverless.cli.consoleLog(buf.toString())); python.stdin.write(input); @@ -191,7 +191,7 @@ class AwsInvokeLocal { `-DhandlerName=${handlerName}`, '-jar', path.join(__dirname, 'java', 'target', 'invoke-bridge-1.0.jar'), - ]); + ], { shell: true }); this.serverless.cli.log([ 'In order to get human-readable output,', @@ -234,7 +234,7 @@ class AwsInvokeLocal { 'package', '-f', path.join(javaBridgePath, 'pom.xml'), - ]); + ], { shell: true }); this.serverless.cli .log('Building Java bridge, first invocation might take a bit longer.'); From a1876717a37a7cc9e0314fd619a6474e99586205 Mon Sep 17 00:00:00 2001 From: bhaskarbalusani <42063253+bhaskarbalusani@users.noreply.github.com> Date: Mon, 6 Aug 2018 13:17:39 +0530 Subject: [PATCH 2/3] Update index.js --- lib/plugins/aws/invokeLocal/index.js | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/lib/plugins/aws/invokeLocal/index.js b/lib/plugins/aws/invokeLocal/index.js index 40a15ea00..fad8628a0 100644 --- a/lib/plugins/aws/invokeLocal/index.js +++ b/lib/plugins/aws/invokeLocal/index.js @@ -174,7 +174,8 @@ class AwsInvokeLocal { return new BbPromise(resolve => { const python = spawn(runtime, - ['-u', path.join(__dirname, 'invoke.py'), handlerPath, handlerName], { env: process.env }, { shell: true }); + ['-u', path.join(__dirname, 'invoke.py'), handlerPath, handlerName], + { env: process.env }, { shell: true }); python.stdout.on('data', (buf) => this.serverless.cli.consoleLog(buf.toString())); python.stderr.on('data', (buf) => this.serverless.cli.consoleLog(buf.toString())); python.stdin.write(input); From c961dee9ab72cfeb0fb6e6f880bb8c137af26ca3 Mon Sep 17 00:00:00 2001 From: bhaskarbalusani <42063253+bhaskarbalusani@users.noreply.github.com> Date: Mon, 6 Aug 2018 14:22:22 +0530 Subject: [PATCH 3/3] Update index.js --- lib/plugins/aws/invokeLocal/index.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lib/plugins/aws/invokeLocal/index.js b/lib/plugins/aws/invokeLocal/index.js index fad8628a0..fe6e99e44 100644 --- a/lib/plugins/aws/invokeLocal/index.js +++ b/lib/plugins/aws/invokeLocal/index.js @@ -174,7 +174,7 @@ class AwsInvokeLocal { return new BbPromise(resolve => { const python = spawn(runtime, - ['-u', path.join(__dirname, 'invoke.py'), handlerPath, handlerName], + ['-u', path.join(__dirname, 'invoke.py'), handlerPath, handlerName], { env: process.env }, { shell: true }); python.stdout.on('data', (buf) => this.serverless.cli.consoleLog(buf.toString())); python.stderr.on('data', (buf) => this.serverless.cli.consoleLog(buf.toString()));