feat: 完善后端启动,打二进制文件防止因为网络无法运行
This commit is contained in:
@@ -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}`);
|
||||
|
||||
// 启动服务器
|
||||
|
||||
Reference in New Issue
Block a user