mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
Merge pull request #236 from Dokploy/fix/traefik-warnings-restart
fix(traefik): add try catch when starting service
This commit is contained in:
@@ -1,4 +1,3 @@
|
|||||||
import React from "react";
|
|
||||||
import {
|
import {
|
||||||
AlertDialog,
|
AlertDialog,
|
||||||
AlertDialogAction,
|
AlertDialogAction,
|
||||||
@@ -13,6 +12,7 @@ import {
|
|||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import { api } from "@/utils/api";
|
import { api } from "@/utils/api";
|
||||||
import { TrashIcon } from "lucide-react";
|
import { TrashIcon } from "lucide-react";
|
||||||
|
import React from "react";
|
||||||
import { toast } from "sonner";
|
import { toast } from "sonner";
|
||||||
|
|
||||||
interface Props {
|
interface Props {
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
import {
|
||||||
|
DiscordIcon,
|
||||||
|
SlackIcon,
|
||||||
|
TelegramIcon,
|
||||||
|
} from "@/components/icons/notification-icons";
|
||||||
import {
|
import {
|
||||||
Card,
|
Card,
|
||||||
CardContent,
|
CardContent,
|
||||||
@@ -9,11 +14,6 @@ import { api } from "@/utils/api";
|
|||||||
import { BellRing, Mail } from "lucide-react";
|
import { BellRing, Mail } from "lucide-react";
|
||||||
import { AddNotification } from "./add-notification";
|
import { AddNotification } from "./add-notification";
|
||||||
import { DeleteNotification } from "./delete-notification";
|
import { DeleteNotification } from "./delete-notification";
|
||||||
import {
|
|
||||||
DiscordIcon,
|
|
||||||
SlackIcon,
|
|
||||||
TelegramIcon,
|
|
||||||
} from "@/components/icons/notification-icons";
|
|
||||||
import { UpdateNotification } from "./update-notification";
|
import { UpdateNotification } from "./update-notification";
|
||||||
|
|
||||||
export const ShowNotifications = () => {
|
export const ShowNotifications = () => {
|
||||||
|
|||||||
@@ -20,7 +20,7 @@
|
|||||||
"db:push": "drizzle-kit --config ./server/db/drizzle.config.ts",
|
"db:push": "drizzle-kit --config ./server/db/drizzle.config.ts",
|
||||||
"db:truncate": "tsx -r dotenv/config ./server/db/reset.ts",
|
"db:truncate": "tsx -r dotenv/config ./server/db/reset.ts",
|
||||||
"db:studio": "drizzle-kit studio --config ./server/db/drizzle.config.ts",
|
"db:studio": "drizzle-kit studio --config ./server/db/drizzle.config.ts",
|
||||||
"check": "biome check",
|
"check": "biome check --write --no-errors-on-unmatched --files-ignore-unknown=true",
|
||||||
"format": "biome format --write",
|
"format": "biome format --write",
|
||||||
"lint": "biome lint",
|
"lint": "biome lint",
|
||||||
"typecheck": "tsc",
|
"typecheck": "tsc",
|
||||||
|
|||||||
@@ -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 () => {
|
||||||
|
|||||||
Reference in New Issue
Block a user