From bcb43777e4d39216483433d56daeb6c86450d2ce Mon Sep 17 00:00:00 2001 From: martineca Date: Thu, 16 May 2019 21:20:52 +0300 Subject: [PATCH 1/2] Adding 'shell:true' to the starter.js file. This will fix issues that are affecting windows user when they are trying to start local dynamodb via the serverless-dynamodb-local package. The process starts and immediately shuts down. --- dynamodb/starter.js | 1 + 1 file changed, 1 insertion(+) diff --git a/dynamodb/starter.js b/dynamodb/starter.js index f2de913..6ff6f19 100644 --- a/dynamodb/starter.js +++ b/dynamodb/starter.js @@ -45,6 +45,7 @@ var starter = { var child = spawn('java', args, { cwd: db_dir, env: process.env, + shell: true, stdio: ['pipe', 'pipe', process.stderr] }); From 00a9e0f88e2c4ecebf484b5f55559f670c360269 Mon Sep 17 00:00:00 2001 From: "mstoyanov@coca-cola.com" Date: Sat, 25 May 2019 13:22:18 +0300 Subject: [PATCH 2/2] Using detached instead of shell:true because of issue on linux. --- dynamodb/starter.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dynamodb/starter.js b/dynamodb/starter.js index 6ff6f19..b5225b4 100644 --- a/dynamodb/starter.js +++ b/dynamodb/starter.js @@ -45,7 +45,7 @@ var starter = { var child = spawn('java', args, { cwd: db_dir, env: process.env, - shell: true, + detached: true, stdio: ['pipe', 'pipe', process.stderr] });