Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion dynamodb/config.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"setup": {
"download_url": "http://s3-us-west-2.amazonaws.com/dynamodb-local/dynamodb_local_latest.tar.gz",
"download_url": "https://s3-us-west-2.amazonaws.com/dynamodb-local/dynamodb_local_latest.tar.gz",
"install_path": "bin",
"jar": "DynamoDBLocal.jar"
},
Expand Down
4 changes: 2 additions & 2 deletions dynamodb/installer.js
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
var tar = require("tar"),
zlib = require("zlib"),
path = require("path"),
http = require("http"),
https = require("https"),
fs = require("fs"),
ProgressBar = require("progress"),
utils = require("./utils");
Expand All @@ -12,7 +12,7 @@ var download = function(downloadUrl, installPath, callback) {
console.log(
`Started downloading dynamodb-local from ${downloadUrl} into ${installPath}. Process may take few minutes.`
);
http
https
.get(downloadUrl, function(response) {
var len = parseInt(response.headers["content-length"], 10),
bar = new ProgressBar(
Expand Down
3 changes: 2 additions & 1 deletion dynamodb/starter.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';

var spawn = require('child_process').spawn,
isMainThread = require('worker_threads').isMainThread,
utils = require('./utils');

var starter = {
Expand Down Expand Up @@ -56,7 +57,7 @@ var starter = {
var child = spawn(executable, args, {
cwd: cwd,
env: process.env,
stdio: ['pipe', 'pipe', process.stderr]
stdio: isMainThread ? ['pipe', 'pipe', process.stderr] : 'inherit'
});

if (!child.pid) {
Expand Down