Skip to content

Commit 8e59996

Browse files
committed
GZip uploads #35
1 parent 225a0d0 commit 8e59996

File tree

2 files changed

+5
-2
lines changed

2 files changed

+5
-2
lines changed

bin/dropstack-deploy

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22
const fs = require('fs');
33
const path = require('path');
44
const os = require('os');
5+
const zlib = require('zlib');
56
const program = require('commander');
67
const boxen = require('boxen');
78
const chalk = require('chalk');
@@ -12,6 +13,7 @@ const fetch = require('node-fetch');
1213
const copyPaste = require('copy-paste');
1314
const urlRegex = require('url-regex');
1415
const FormData = require('form-data');
16+
const gzip = zlib.createGzip();
1517
const EventSource = require('eventsource');
1618
const credentials = require('../lib/credentials')();
1719
const configurationSettings = require('../lib/settings');
@@ -78,6 +80,7 @@ function deploy({folder, token, variables, instances, alias, https, type, url, e
7880
fstream.Reader({ path: args, type: 'Directory', follow: false, filter: x => tarFileFilter(x, settings.excludes)})
7981
.on('error', err => console.error(chalk.red(`\nAn unexpected error occurred!\nMessage: ${chalk.gray(err.message)}`)))
8082
.pipe(packer)
83+
.pipe(gzip)
8184
.pipe(dirDest);
8285
});
8386
}

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "dropstack-cli",
3-
"version": "2.4.7",
3+
"version": "2.5.1",
44
"description": "A CLI to simplify continuous deployments into hybrid clouds.",
55
"author": "Mike Bild <mike@codecommission.com>",
66
"homepage": "https://github.com/codecommission/dropstack-cli#readme",
@@ -28,7 +28,7 @@
2828
"commander": "^2.11.0",
2929
"copy-paste": "^1.3.0",
3030
"eventsource": "^1.0.4",
31-
"form-data": "^2.2.0",
31+
"form-data": "^2.3.1",
3232
"fs-promise": "^2.0.3",
3333
"fstream": "^1.0.11",
3434
"minimatch": "^3.0.4",

0 commit comments

Comments
 (0)