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 ```