feat: add multi server compose

This commit is contained in:
Mauricio Siu
2024-09-10 01:11:15 -06:00
parent 86f1bf31b8
commit a8d714c20d
15 changed files with 389 additions and 43 deletions

View File

@@ -45,14 +45,17 @@ export const DeployApplication = ({ applicationId }: Props) => {
<AlertDialogCancel>Cancel</AlertDialogCancel>
<AlertDialogAction
onClick={async () => {
toast.success("Deploying Application....");
await refetch();
await deploy({
applicationId,
}).catch(() => {
toast.error("Error to deploy Application");
});
})
.then(async () => {
toast.success("Application deployed succesfully");
await refetch();
})
.catch(() => {
toast.error("Error to deploy Application");
});
await refetch();
}}