14 lines
426 B
TypeScript
14 lines
426 B
TypeScript
import { bootstrap } from "./bootstrap";
|
|
import { parseRuntimeArgs } from "./config";
|
|
import { createConsoleFallback } from "./logger";
|
|
|
|
async function main() {
|
|
const { configPath } = parseRuntimeArgs();
|
|
await bootstrap({ configPath, mode: "production" });
|
|
}
|
|
|
|
void main().catch((error) => {
|
|
createConsoleFallback().fatal(`启动失败: ${error instanceof Error ? error.message : String(error)}`);
|
|
process.exit(1);
|
|
});
|