Skip to content

Commit

Permalink
use normal deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
mmeigs committed Nov 29, 2023
1 parent 857a1db commit d87b56e
Showing 1 changed file with 15 additions and 14 deletions.
29 changes: 15 additions & 14 deletions src/job/stagingJobHandler.ts
Original file line number Diff line number Diff line change
Expand Up @@ -89,20 +89,21 @@ export class StagingJobHandler extends JobHandler {
});
} else {
// TODO: this should be normal deployGeneric
this.logger.save(this.currJob._id, `ITS fake monorepo, let's stage!! All the world's a stage.`);
const hasConfigRedirects = fs.existsSync(path.join(process.cwd(), 'config/redirects'));
resp = await nextGenStage({
job: this.currJob,
preppedLogger: (message: string) => this.logger.save(this.currJob._id, message),
});
this.logger.save(this.currJob._id, `Now to deploy `);
await nextGenDeploy({
gitBranch: this.currJob.payload.branchName,
mutPrefix: this.currJob.mutPrefix || '',
hasConfigRedirects: hasConfigRedirects,
preppedLogger: (message: string) => this.logger.save(this.currJob._id, message),
});
// resp = await this.deployGeneric();
// this.logger.save(this.currJob._id, `ITS fake monorepo, let's stage!! All the world's a stage.`);
// const hasConfigRedirects = fs.existsSync(path.join(process.cwd(), 'config/redirects'));
// this.logger.save(this.currJob._id, `hasConfigRedirects: ${hasConfigRedirects}`);
// resp = await nextGenStage({
// job: this.currJob,
// preppedLogger: (message: string) => this.logger.save(this.currJob._id, message),
// });
// this.logger.save(this.currJob._id, `Now to deploy `);
// await nextGenDeploy({
// gitBranch: this.currJob.payload.branchName,
// mutPrefix: this.currJob.mutPrefix || '',
// hasConfigRedirects: hasConfigRedirects,
// preppedLogger: (message: string) => this.logger.save(this.currJob._id, message),
// });
resp = await this.deployGeneric();
}
const summary = '';
if (resp?.output?.includes('Summary')) {
Expand Down

0 comments on commit d87b56e

Please sign in to comment.