Skip to content

Commit

Permalink
Print aws sync progress to terminal
Browse files Browse the repository at this point in the history
  • Loading branch information
pazdera committed Dec 19, 2017
1 parent e47d38e commit 350cd88
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
8 changes: 7 additions & 1 deletion lib/deploy-methods/s3.js
Original file line number Diff line number Diff line change
Expand Up @@ -106,13 +106,19 @@ function _doReleaseBySync(build, target, data) {

proc = childProcess.spawn('aws', ['s3', 'sync', '--acl', 'public-read', path, `s3://${target}`], {
env: env,
stdio: ['pipe', 'ignore', 'pipe'],
stdio: ['pipe', 'pipe', 'pipe'],
shell: true
});
proc.stderr.on('data', function (data) {
errBuffer += data + "\n";
});

proc.stdout.on('data', function (data) {
if (data) {
console.log(data.toString());
}
});

proc.on('close', function (code) {
if (code !== 0) {
cleanupCb();
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "kart",
"version": "0.4.6",
"version": "0.4.7",
"description": "Kano Archive and Release Tool. Managing releases mainly of static websites.",
"main": "lib/index.js",
"bin": {
Expand Down

0 comments on commit 350cd88

Please sign in to comment.