Skip to content

Commit

Permalink
fixed bug in install script, skipping all configuring steps
Browse files Browse the repository at this point in the history
  • Loading branch information
Thre4dripper committed Oct 21, 2024
1 parent 9539745 commit a8b4b5f
Showing 1 changed file with 24 additions and 32 deletions.
56 changes: 24 additions & 32 deletions src/scripts/installScript.ts
Original file line number Diff line number Diff line change
Expand Up @@ -36,41 +36,33 @@ export const installScript = async (projectConfig: ProjectConfig) => {
);
s.stop('Api controllers setup complete');

if (projectConfig.socket) {
s.start('Configuring socket');
await setupSocket(
projectConfig.projectLocation,
projectConfig.socket,
projectConfig.projectType
);
s.stop('Configured socket');
}
s.start('Configuring socket');
await setupSocket(
projectConfig.projectLocation,
projectConfig.socket,
projectConfig.projectType
);
s.stop('Configured socket');

if (projectConfig.cron) {
s.start('Configuring cron');
await setupCron(
projectConfig.projectLocation,
projectConfig.cron,
projectConfig.projectType
);
s.stop('Configured cron');
}
s.start('Configuring cron');
await setupCron(
projectConfig.projectLocation,
projectConfig.cron,
projectConfig.projectType
);
s.stop('Configured cron');

if (projectConfig.swagger) {
s.start('Setting up swagger');
await setupSwagger(
projectConfig.projectLocation,
projectConfig.swagger,
projectConfig.projectType
);
s.stop('Swagger setup complete');
}
s.start('Configuring swagger');
await setupSwagger(
projectConfig.projectLocation,
projectConfig.swagger,
projectConfig.projectType
);
s.stop('Configured swagger');

if (projectConfig.docker) {
s.start('Setting up docker');
await setupDocker(projectConfig.projectLocation, projectConfig.docker);
s.stop('Docker setup complete');
}
s.start('Configuring docker');
await setupDocker(projectConfig.projectLocation, projectConfig.docker);
s.stop('Configured docker');

await setupReadme(projectConfig);

Expand Down

0 comments on commit a8b4b5f

Please sign in to comment.