Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

deploy delete implementation done #37

Closed
wants to merge 2 commits into from

Conversation

HeeManSu
Copy link
Contributor

No description provided.

@HeeManSu HeeManSu mentioned this pull request Mar 12, 2024
@@ -108,3 +108,7 @@ export interface childProcessResponse {
type: keyof typeof protocol;
data: unknown;
}

export interface deleteBody {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Incomplete schema of delete payload.

const appPath = path.join(appsDir, appName);

if (fs.existsSync(appPath)) {
fs.rmdirSync(appPath, { recursive: true });
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

recursive: true will not work with higher node versions such as node:18x, it will be ignored as its deprecated, use the correct thing.

@@ -253,6 +255,34 @@ export const showLogs = (req: Request, res: Response): Response => {
return res.send('Demo Logs...');
};

export const deployDelete = (
req: Omit<Request, 'body'> & { body: deleteBody },
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why?

@Creatoon Creatoon closed this Mar 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants