Initial commit: WordLoop 单词学习应用
Vue 前端 + FastAPI 后端,含部署脚本与词典数据。 Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
Executable
+13
@@ -0,0 +1,13 @@
|
||||
#!/usr/bin/env bash
|
||||
# 在项目根目录执行:./deploy/build.sh
|
||||
set -e
|
||||
ROOT="$(cd "$(dirname "$0")/.." && pwd)"
|
||||
|
||||
echo ">>> 构建前端..."
|
||||
cd "$ROOT/frontend"
|
||||
npm ci
|
||||
npm run build
|
||||
|
||||
echo ">>> 完成。静态文件在 frontend/dist/"
|
||||
echo " 生产部署请将 dist 同步到服务器,例如:"
|
||||
echo " rsync -avz frontend/dist/ user@server:/var/www/wordloop/frontend/dist/"
|
||||
Reference in New Issue
Block a user