修复部署配置,确保正确显示主页面

- 修正 package.json 中的服务器启动路径
- 更新快速启动脚本的访问地址提示
- 更新文档中的访问URL为完整路径
- 确保服务器从项目根目录启动而非public目录
This commit is contained in:
KQL
2025-08-24 14:15:14 +08:00
parent 9bd3e6c4a4
commit e8fd104bf7
6 changed files with 16 additions and 8 deletions

View File

@@ -6,7 +6,11 @@
"mcp__serena__read_file", "mcp__serena__read_file",
"Bash(open /Users/apple/Documents/cursor/数字员工/linear-workflow.html)", "Bash(open /Users/apple/Documents/cursor/数字员工/linear-workflow.html)",
"Bash(git init:*)", "Bash(git init:*)",
"Bash(git add:*)" "Bash(git add:*)",
"Bash(git commit:*)",
"Bash(git remote add:*)",
"Bash(git push:*)",
"Bash(chmod:*)"
], ],
"deny": [], "deny": [],
"ask": [] "ask": []

View File

@@ -24,7 +24,7 @@ cd agent
quick-start.bat quick-start.bat
``` ```
项目将自动在 `http://127.0.0.1:5175` 启动 项目将自动在 `http://127.0.0.1:5175` 启动,并打开 `linear-workflow.html` 页面
--- ---
@@ -73,7 +73,9 @@ npm run serve
### 5. 访问应用 ### 5. 访问应用
在浏览器中访问:`http://127.0.0.1:5175` 在浏览器中访问:`http://127.0.0.1:5175/linear-workflow.html`
或者如果使用 `npm run dev`,浏览器会自动打开
--- ---

View File

@@ -33,7 +33,9 @@ npm install
npm run dev npm run dev
``` ```
项目将在 `http://127.0.0.1:5175` 启动,并自动打开浏览器展示页面。 项目将在 `http://127.0.0.1:5175` 启动,并自动打开浏览器展示 `linear-workflow.html` 页面。
如果浏览器没有自动打开,请手动访问:`http://127.0.0.1:5175/linear-workflow.html`
## 部署方式 ## 部署方式

View File

@@ -4,8 +4,8 @@
"description": "AI Agent 设计工作流 - 奶茶快闪店宝可梦主题设计", "description": "AI Agent 设计工作流 - 奶茶快闪店宝可梦主题设计",
"main": "linear-workflow.html", "main": "linear-workflow.html",
"scripts": { "scripts": {
"dev": "npx http-server -p 5175 -a 127.0.0.1 -o /linear-workflow.html", "dev": "npx http-server . -p 5175 -a 127.0.0.1 -o linear-workflow.html",
"serve": "npx http-server -p 5175 -a 127.0.0.1" "serve": "npx http-server . -p 5175 -a 127.0.0.1"
}, },
"keywords": [ "keywords": [
"AI", "AI",

View File

@@ -36,7 +36,7 @@ echo ======================================
echo 启动服务器... echo 启动服务器...
echo ====================================== echo ======================================
echo. echo.
echo 服务器地址: http://127.0.0.1:5175 echo 服务器地址: http://127.0.0.1:5175/linear-workflow.html
echo 按 Ctrl+C 停止服务器 echo 按 Ctrl+C 停止服务器
echo. echo.

View File

@@ -31,7 +31,7 @@ echo "======================================"
echo "🚀 启动服务器..." echo "🚀 启动服务器..."
echo "======================================" echo "======================================"
echo "" echo ""
echo "服务器地址: http://127.0.0.1:5175" echo "服务器地址: http://127.0.0.1:5175/linear-workflow.html"
echo "按 Ctrl+C 停止服务器" echo "按 Ctrl+C 停止服务器"
echo "" echo ""