Revert "misc: added health and ready probe endpoints"

This commit is contained in:
Sheen
2025-10-29 03:06:31 +08:00
committed by GitHub
parent e19daa51ad
commit ec9671c36c
10 changed files with 646 additions and 829 deletions
+2 -6
View File
@@ -8,7 +8,7 @@ import path from "path";
import { seedData1 } from "@app/db/seed-data";
import { getDatabaseCredentials, getHsmConfig, initEnvConfig } from "@app/lib/config/env";
import { initLogger } from "@app/lib/logger";
import { main, markServerReady } from "@app/server/app";
import { main } from "@app/server/app";
import { AuthMethod, AuthTokenType } from "@app/services/auth/auth-type";
import { mockSmtpServer } from "./mocks/smtp";
@@ -83,7 +83,7 @@ export default {
await queue.initialize();
const { server, completeServerInitialization } = await main({
const server = await main({
db,
smtp,
logger,
@@ -96,10 +96,6 @@ export default {
envConfig: envCfg
});
await completeServerInitialization();
markServerReady();
await bootstrapCheck({ db });
// @ts-expect-error type