docs(readme): 修复前端构建产物复制命令的目录嵌套问题

This commit is contained in:
Bhao committed 2026-11-05 22:04:16 +08:00
1 parent 459a484237
commit e45fa6e7b3
1 file changed
+7 -4
+7 -4
View File
@@ -157,9 +157,11 @@ cp config.example.json config.json # 填好 database 连接
```bash
# 1) 前端静态导出
cd web && npm ci && npm run build:static && cd ..
# 2) 拷进内嵌目录
cp -r web/out server/webui/dist
# 3) 编译(-tags embedui 才内嵌前端)
# 2) 创建内嵌目录
mkdir -p server/webui/dist
# 3) 拷进内嵌目录
cp -r web/out/. server/webui/dist
# 4) 编译(-tags embedui 才内嵌前端)
CGO_ENABLED=0 go build -tags embedui -o artex ./cmd/artex
./start.sh
```
@@ -290,7 +292,8 @@ cp -r <解压目录>/skills ./ && cp <解压目录>/artex ./
```bash
git pull
cd web && npm ci && npm run build:static && cd ..
cp -r web/out server/webui/dist
mkdir -p server/webui/dist
cp -r web/out/. server/webui/dist
CGO_ENABLED=0 go build -tags embedui -o artex ./cmd/artex
# 重启 ./start.sh
```