refactor: test rollback

This commit is contained in:
Mauricio Siu 2024-10-05 14:27:00 -06:00
parent b4448e013c
commit fecffac573
2 changed files with 10 additions and 3 deletions

View File

@ -104,7 +104,7 @@ export default function Home() {
className="flex flex-row items-center gap-2"
>
<Logo />
<span className="font-medium text-sm">Dokploy.</span>
<span className="font-medium text-sm">Dokploy</span>
</Link>
<CardTitle className="text-2xl font-bold">Sign in</CardTitle>
<CardDescription>

View File

@ -600,8 +600,9 @@ export const settingsRouter = createTRPCRouter({
health: publicProcedure.query(async () => {
if (IS_CLOUD) {
try {
await db.execute(sql`SELECT 1`);
return { status: "ok" };
// await db.execute(sql`SELECT 1`);
// return { status: "ok" };
throw new Error("Not implemented");
} catch (error) {
console.error("Database connection error:", error);
throw error;
@ -610,3 +611,9 @@ export const settingsRouter = createTRPCRouter({
return { status: "not_cloud" };
}),
});
// {
// "Parallelism": 1,
// "Delay": 10000000000,
// "FailureAction": "rollback",
// "Order": "start-first"
// }