diff --git a/README.md b/README.md index 2903eeb..63c2b22 100644 --- a/README.md +++ b/README.md @@ -167,8 +167,8 @@ const runTemplate = async () => { }) // 启动服务器 - Deno.serve({ port: 8000 }, appInstance.fetch) - console.log('应用已启动,监听端口: 8000') + Deno.serve({ port: 8080 }, appInstance.fetch) + console.log('应用已启动,监听端口: 8080') } } catch (error) { console.error('模板加载失败:', error) diff --git a/server/run_app.ts b/server/run_app.ts index 427503b..c2b5b66 100644 --- a/server/run_app.ts +++ b/server/run_app.ts @@ -69,8 +69,8 @@ const runTemplate = async () => { }) // 启动服务器 - Deno.serve({ port: 8000 }, appInstance.fetch) - console.log('应用已启动,监听端口: 8000') + Deno.serve({ port: 8080 }, appInstance.fetch) + console.log('应用已启动,监听端口: 8080') } } catch (error) { console.error('模板加载失败:', error)