refactor: 重命名客户端工程

This commit is contained in:
Nixevol
2026-07-03 03:08:05 +08:00
parent b9e2b78fcd
commit 70a8528f41
35 changed files with 64 additions and 61 deletions
+1 -1
View File
@@ -12,7 +12,7 @@ COPY pnpm-workspace.yaml package.json pnpm-lock.yaml ./
COPY packages/shared/package.json ./packages/shared/
COPY apps/api/package.json ./apps/api/
COPY apps/admin/package.json ./apps/admin/
COPY apps/h5/package.json ./apps/h5/
COPY apps/client/package.json ./apps/client/
RUN pnpm install --frozen-lockfile
COPY packages/shared ./packages/shared
COPY apps/api ./apps/api
+6 -4
View File
@@ -1,7 +1,7 @@
# ============================================================
# 全栈编排(生产/演示参考):MySQL + Redis + 后端 API + Nginx 静态站
# ------------------------------------------------------------
# 使用前置条件:先在仓库根执行 pnpm -r build 生成 apps/admin/dist 与 apps/h5/dist
# 使用前置条件:先在仓库根执行 pnpm -r build 生成 apps/admin/dist 与 apps/client/dist
# 启动: docker compose -f docker/docker-compose.full.yml up -d --build
#
# 【怎么改环境变量?】
@@ -13,6 +13,8 @@
# 注意:容器之间用“服务名”互相访问(如 API 连库用主机名 mysql、连缓存用 redis),
# 这与本地开发用 localhost 不同,无需也不要改成 localhost。
# ============================================================
name: artveris-full
services:
# -------------------- MySQL 8.0 --------------------
mysql:
@@ -61,7 +63,7 @@ services:
REDIS_PORT: 6379
JWT_SECRET: ${JWT_SECRET:-please_change_in_prod} # 登录令牌签名密钥(生产必改)
BASE_URL: ${BASE_URL:-http://localhost} # 对外访问基址,短链/二维码用,须填真实域名
H5_ORIGIN: ${H5_ORIGIN:-http://localhost:8080} # C 端站点地址(CORS/跳转用)
CLIENT_ORIGIN: ${CLIENT_ORIGIN:-http://localhost:8080} # 客户端站点地址(CORS/跳转用)
STORAGE_DRIVER: ${STORAGE_DRIVER:-local} # 文件存储:local 本地 | oss 对象存储
BLOCKCHAIN_DRIVER: ${BLOCKCHAIN_DRIVER:-mock} # 存证驱动:mock 模拟 | tianhe 天河链
GEO_DRIVER: mock # IP 归属地驱动
@@ -78,11 +80,11 @@ services:
ports:
# 对外端口(宿主机:容器)。要换对外端口改左侧,例如管理后台用 8000 则 "8000:80"
- "80:80" # 管理后台(admin)
- "8080:8080" # C 端溯源页(h5)
- "8080:8080" # 客户端溯源页
volumes:
# 前端构建产物挂载(只读):改这两个 dist 路径需先 pnpm -r build
- ../apps/admin/dist:/usr/share/nginx/html/admin:ro
- ../apps/h5/dist:/usr/share/nginx/html/h5:ro
- ../apps/client/dist:/usr/share/nginx/html/client:ro
# Nginx 站点配置(端口/反代规则在此文件内调整)
- ./nginx/nginx.conf:/etc/nginx/conf.d/default.conf:ro
+2 -2
View File
@@ -23,11 +23,11 @@ server {
}
}
# C 端移动溯源页(8080 端口)
# 客户端溯源页(8080 端口)
server {
listen 8080;
server_name _;
root /usr/share/nginx/html/h5;
root /usr/share/nginx/html/client;
index index.html;
location /api/ {