mirror of
https://github.com/Dokploy/dokploy
synced 2025-06-26 18:27:59 +00:00
refactor: test rollback
This commit is contained in:
@@ -104,7 +104,7 @@ export default function Home() {
|
|||||||
className="flex flex-row items-center gap-2"
|
className="flex flex-row items-center gap-2"
|
||||||
>
|
>
|
||||||
<Logo />
|
<Logo />
|
||||||
<span className="font-medium text-sm">Dokploy.</span>
|
<span className="font-medium text-sm">Dokploy</span>
|
||||||
</Link>
|
</Link>
|
||||||
<CardTitle className="text-2xl font-bold">Sign in</CardTitle>
|
<CardTitle className="text-2xl font-bold">Sign in</CardTitle>
|
||||||
<CardDescription>
|
<CardDescription>
|
||||||
|
|||||||
@@ -600,8 +600,9 @@ export const settingsRouter = createTRPCRouter({
|
|||||||
health: publicProcedure.query(async () => {
|
health: publicProcedure.query(async () => {
|
||||||
if (IS_CLOUD) {
|
if (IS_CLOUD) {
|
||||||
try {
|
try {
|
||||||
await db.execute(sql`SELECT 1`);
|
// await db.execute(sql`SELECT 1`);
|
||||||
return { status: "ok" };
|
// return { status: "ok" };
|
||||||
|
throw new Error("Not implemented");
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
console.error("Database connection error:", error);
|
console.error("Database connection error:", error);
|
||||||
throw error;
|
throw error;
|
||||||
@@ -610,3 +611,9 @@ export const settingsRouter = createTRPCRouter({
|
|||||||
return { status: "not_cloud" };
|
return { status: "not_cloud" };
|
||||||
}),
|
}),
|
||||||
});
|
});
|
||||||
|
// {
|
||||||
|
// "Parallelism": 1,
|
||||||
|
// "Delay": 10000000000,
|
||||||
|
// "FailureAction": "rollback",
|
||||||
|
// "Order": "start-first"
|
||||||
|
// }
|
||||||
|
|||||||
Reference in New Issue
Block a user