修复部署配置,确保正确显示主页面
- 修正 package.json 中的服务器启动路径 - 更新快速启动脚本的访问地址提示 - 更新文档中的访问URL为完整路径 - 确保服务器从项目根目录启动而非public目录
This commit is contained in:
@@ -6,7 +6,11 @@
|
||||
"mcp__serena__read_file",
|
||||
"Bash(open /Users/apple/Documents/cursor/数字员工/linear-workflow.html)",
|
||||
"Bash(git init:*)",
|
||||
"Bash(git add:*)"
|
||||
"Bash(git add:*)",
|
||||
"Bash(git commit:*)",
|
||||
"Bash(git remote add:*)",
|
||||
"Bash(git push:*)",
|
||||
"Bash(chmod:*)"
|
||||
],
|
||||
"deny": [],
|
||||
"ask": []
|
||||
|
||||
@@ -24,7 +24,7 @@ cd agent
|
||||
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. 访问应用
|
||||
|
||||
在浏览器中访问:`http://127.0.0.1:5175`
|
||||
在浏览器中访问:`http://127.0.0.1:5175/linear-workflow.html`
|
||||
|
||||
或者如果使用 `npm run dev`,浏览器会自动打开
|
||||
|
||||
---
|
||||
|
||||
|
||||
@@ -33,7 +33,9 @@ npm install
|
||||
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`
|
||||
|
||||
## 部署方式
|
||||
|
||||
|
||||
@@ -4,8 +4,8 @@
|
||||
"description": "AI Agent 设计工作流 - 奶茶快闪店宝可梦主题设计",
|
||||
"main": "linear-workflow.html",
|
||||
"scripts": {
|
||||
"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"
|
||||
"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"
|
||||
},
|
||||
"keywords": [
|
||||
"AI",
|
||||
|
||||
@@ -36,7 +36,7 @@ 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.
|
||||
|
||||
|
||||
@@ -31,7 +31,7 @@ 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 ""
|
||||
|
||||
|
||||
Reference in New Issue
Block a user