Skip to content

Commit

Permalink
ci(deploy-docs): Edit the logging during deploy and remove test folder.
Browse files Browse the repository at this point in the history
  • Loading branch information
ryanoglesby08 committed Aug 16, 2017
1 parent e0f7557 commit f254368
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions scripts/deploy-docs.js
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,7 @@ const s3 = new AWS.S3({ region: config.region });
const deployToS3 = (prefix) => new Promise((resolve, reject) => {
const deployConfig = Object.assign(config, { prefix });

console.log('Deploying to s3...');
console.log(deployConfig);
console.log(`Deploying to s3: ${deployConfig.domain}/${deployConfig.prefix}...`);

deploy(s3, deployConfig, (err, website) => {
if (err) {
Expand All @@ -60,8 +59,7 @@ const deployToS3_deprecated = () => {
prefix: env === 'production' ? undefined : 'latest'
});

console.log('Deploying to s3 (deprecated)...');
console.log(deployConfig);
console.log(`Deploying to s3: ${deployConfig.domain}/${deployConfig.prefix}...`);

deploy(s3, deployConfig, (err, website) => {
if (err) {
Expand All @@ -82,5 +80,4 @@ if (env === 'production') {
}
else {
deployToS3('staging');
deployToS3('ryan.test.1');
}

0 comments on commit f254368

Please sign in to comment.