Skip to content

Commit

Permalink
log publish
Browse files Browse the repository at this point in the history
  • Loading branch information
mmeigs committed Nov 29, 2023
1 parent 86dbf92 commit 857a1db
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/commands/src/shared/next-gen-deploy.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export async function nextGenDeploy({ mutPrefix, gitBranch, hasConfigRedirects,
if (hasConfigRedirects && (gitBranch === 'main' || gitBranch === 'master')) {
// equivalent to: mut-redirects config/redirects -o public/.htaccess
await executeCliCommand({ command: 'mut-redirects', args: ['config/redirects', '-o', 'public/.htaccess'] });
preppedLogger(`COMMAND: mut-redirects config/redirects -o public/.htaccess`);
}

const bucket = process.env.BUCKET;
Expand All @@ -33,6 +34,8 @@ export async function nextGenDeploy({ mutPrefix, gitBranch, hasConfigRedirects,
};
}

preppedLogger(`URL: ${url}\nBUCKET: ${bucket}\n`);

// equivalent to: yes | mut-publish public ${BUCKET} --prefix=${MUT_PREFIX} --deploy --deployed-url-prefix=${URL} --json --all-subdirectories ${ARGS};
const { outputText } = await executeAndPipeCommands(
{ command: 'yes' },
Expand All @@ -52,6 +55,9 @@ export async function nextGenDeploy({ mutPrefix, gitBranch, hasConfigRedirects,
},
}
);
preppedLogger(
`COMMAND: yes | mut-publish public ${bucket} --prefix=${mutPrefix} --deploy --deployed-url-prefix=${url} --json --all-subdirectories ${process.cwd()}/snooty`
);
preppedLogger(`${outputText}\n Hosted at ${url}/${mutPrefix}`);
return {
status: 'inProgress',
Expand Down

0 comments on commit 857a1db

Please sign in to comment.