Skip to content
This repository was archived by the owner on Jan 24, 2021. It is now read-only.

Commit 3618ae1

Browse files
committed
fix(index): Fix params passed down (was missing CLI flag)
1 parent b16c949 commit 3618ae1

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

bin/cli.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ program
1313
.parse(process.argv);
1414

1515
if (program.path && program.bucket) {
16-
deploy(program.path, program.bucket, program.distributuon, program.profile, program.verbose, true).then((msg) => {
16+
deploy(program.path, program.bucket, program.distribution, program.profile, program.verbose, true).then((msg) => {
1717
console.log(chalk.greenBright(msg));
1818
}).catch((e) => {
1919
console.log(chalk.bold.red(`ERROR: ${e.message}`));

src/index.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ const AWS = require('aws-sdk');
44
const s3 = require('./s3');
55
const cloudFront = require('./cloudfront');
66

7-
function deploy(path, bucketName, distributionId, profile, verboseMode) {
7+
function deploy(userPath, bucketName, distributionId, profile, verboseMode, isCli) {
88
return new Promise((resolve, reject) => {
99
console.log(chalk.blue(`Starting deployment of gatsby app to S3 bucket: ${bucketName}...`));
1010

0 commit comments

Comments
 (0)