feat: 完善后端启动,打二进制文件防止因为网络无法运行

This commit is contained in:
ethan.chen
2025-11-05 15:11:29 +08:00
parent 73945c40e5
commit fe64b293dd
5 changed files with 21 additions and 43 deletions

View File

@@ -72,7 +72,7 @@ Deno.addSignalListener("SIGTERM", () => {
await startup();
// 获取端口号
const port = parseInt(Deno.env.get("PORT") || "5005");
const port = Number(Deno.env.get("PORT") ?? 5005);
console.log(`启动后端服务器在端口: ${port}`);
// 启动服务器