mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
fix(traefik): add try catch when starting service
This commit is contained in:
parent
1c41091372
commit
25fe080582
@ -58,8 +58,13 @@ export const settingsRouter = createTRPCRouter({
|
|||||||
return true;
|
return true;
|
||||||
}),
|
}),
|
||||||
reloadTraefik: adminProcedure.mutation(async () => {
|
reloadTraefik: adminProcedure.mutation(async () => {
|
||||||
await stopService("dokploy-traefik");
|
try {
|
||||||
await startService("dokploy-traefik");
|
await stopService("dokploy-traefik");
|
||||||
|
await startService("dokploy-traefik");
|
||||||
|
} catch (err) {
|
||||||
|
console.error(err);
|
||||||
|
}
|
||||||
|
|
||||||
return true;
|
return true;
|
||||||
}),
|
}),
|
||||||
cleanUnusedImages: adminProcedure.mutation(async () => {
|
cleanUnusedImages: adminProcedure.mutation(async () => {
|
||||||
|
Loading…
Reference in New Issue
Block a user