mirror of
https://github.com/andwati/dokploy.git
synced 2026-11-10 05:55:18 +00:00
feat: add redis installation on server and deploy applications on servers
This commit is contained in:
@@ -41,8 +41,6 @@ export const SetupServer = ({ serverId }: Props) => {
|
||||
},
|
||||
);
|
||||
|
||||
const { mutateAsync } = api.server.setup.useMutation();
|
||||
|
||||
const [activeLog, setActiveLog] = useState<string | null>(null);
|
||||
const { data: deployments, refetch } = api.deployment.allByServer.useQuery(
|
||||
{ serverId },
|
||||
@@ -52,6 +50,14 @@ export const SetupServer = ({ serverId }: Props) => {
|
||||
},
|
||||
);
|
||||
|
||||
const { mutateAsync } = api.server.setup.useMutation({
|
||||
// onMutate: async (variables) => {
|
||||
// console.log("Running....");
|
||||
// utils.deployment.allByServer.invalidate({ serverId: variables.serverId });
|
||||
// // refetch();
|
||||
// },
|
||||
});
|
||||
|
||||
return (
|
||||
<Dialog open={isOpen} onOpenChange={setIsOpen}>
|
||||
<DialogTrigger asChild>
|
||||
@@ -94,7 +100,7 @@ export const SetupServer = ({ serverId }: Props) => {
|
||||
serverId: server?.serverId || "",
|
||||
})
|
||||
.then(async () => {
|
||||
refetch();
|
||||
// refetch();
|
||||
toast.success("Server setup successfully");
|
||||
})
|
||||
.catch(() => {
|
||||
|
||||
Reference in New Issue
Block a user