Skip to content

🎬 火宝短剧 - 基于AI的一站式短剧生成平台 《一句话生成完整短剧,从剧本到成片全自动化》 Huobao Drama - An AI-Powered End-to-End Short Drama Generator "One Sentence to Complete Drama: Fully Automated from Script to Final Video"

TypeScript

docs(readme): 补充前端产物复制步骤,修复传统部署页面 404

Connor724875791e91
diff --git a/README.md b/README.md
index 68502a8..3a55a86 100644
--- a/README.md
+++ b/README.md
@@ -161,7 +161,10 @@ npm run dev
# 1. 构建前端
cd frontend && npm run generate
-# 2. 启动后端
+# 2. 复制构建产物到后端读取的目录(generate 产物在 .output/public,后端只读取 frontend/dist)
+cp -r .output/public dist
+
+# 3. 启动后端
cd ../backend && npm start
```
@@ -281,9 +284,12 @@ docker build -t huobao-drama:latest .
```bash
# 1. 构建前端
-cd frontend && npm run generate && cd ..
+cd frontend && npm run generate
+
+# 2. 复制构建产物(generate 产物在 frontend/.output/public,后端只读取 frontend/dist,缺此步 API 正常但页面 404)
+cp -r .output/public dist && cd ..
-# 2. 启动后端
+# 3. 启动后端
cd backend && npm start
```