From dd9cc60cebb4b9eb6e2c96b8cf6a6f4e1f03c5ab Mon Sep 17 00:00:00 2001 From: yinxue <2643126914@qq.com> Date: Tue, 21 Oct 2025 16:45:21 +0800 Subject: [PATCH] =?UTF-8?q?=E5=B0=86=E5=90=AF=E5=8A=A8=E9=A1=B9=E7=9B=AE?= =?UTF-8?q?=E6=94=BE=E5=9C=A8postAttachCommand=E9=98=B6=E6=AE=B5=E6=89=A7?= =?UTF-8?q?=E8=A1=8C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .devcontainer/devcontainer.json | 3 +-- Read.md => READ.md | 2 +- 2 files changed, 2 insertions(+), 3 deletions(-) rename Read.md => READ.md (87%) diff --git a/.devcontainer/devcontainer.json b/.devcontainer/devcontainer.json index df5b48c..b5a8d50 100644 --- a/.devcontainer/devcontainer.json +++ b/.devcontainer/devcontainer.json @@ -5,8 +5,7 @@ 5173 ], "postCreateCommand": "npm install && npm add -D vitepress", - "postStartCommand": "npm run docs:dev -- --host 0.0.0.0", - // "postAttachCommand": "pkill -f 'vite' || npm run docs:dev -- --host 0.0.0.0", + "postAttachCommand": "npm run docs:dev -- --host 0.0.0.0", "customizations": { "vscode": { "extensions": [ diff --git a/Read.md b/READ.md similarity index 87% rename from Read.md rename to READ.md index a25c54a..6c57b05 100644 --- a/Read.md +++ b/READ.md @@ -7,7 +7,7 @@ Vitepress 模板 ## 使用方法 ``` -进入容器后会自动执行 npm run docs:dev -- --host 0.0.0.0命令,访问http://localhost:5173/即可 +进入容器后会自动执行 npm run docs:dev -- --host 0.0.0.0命令,访问终端显示的端口即可 项目启动命令为npm run docs:dev -- --host 0.0.0.0 ```