revert: 撤掉单仓内的门户骨架,门户以独立仓 iotlcm-public/website 为唯一来源
mirror-to-gitee / mirror (push) Successful in 58s
mirror-to-gitee / mirror (push) Successful in 58s
原因 门户已拆分为独立仓 iotlcm-public/website(11:28 建仓,13:13 完成 fafc743「并入旧骨架独有价值内容,修 favicon 落地路径与过渡形态绑定」), 是门户的唯一事实来源。本仓6c8314a合并进来的 website/ 是拆分前的 旧骨架,继续保留会导致: - 两份门户代码持续漂移,同一问题要在两个仓各修一遍 - 单仓 compose / gateway / Makefile 里残留 with-website profile 与 /www/ 路由,与独立仓「门户自起容器、独立端口」的既定方案冲突 本提交 = revert -m 1 6c8314a,效果等同回到e98f856(git diffe98f856HEAD 为空)。回退点: tag backup/before-revert-portal-20261104 ->6c8314a门户部署改为(164 上,独立目录,不动 iotlcm-deploy): git clone https://git.5iot.com/iotlcm-public/website.git ~/iotlcm/website cd ~/iotlcm/website PORTAL_BIND_ADDR=0.0.0.0 docker compose -f deploy/docker-compose.yml up -d --build
This commit is contained in:
@@ -398,37 +398,6 @@ services:
|
||||
retries: 5
|
||||
start_period: 10s
|
||||
|
||||
# ---------------- 官网(开源版门户站) ----------------
|
||||
# 项目介绍、功能矩阵、快速开始、教程入口的门户站。
|
||||
# 过渡形态(没有独立域名):单独占用一个宿主机端口,用 http://<主机>:8020/ 访问;
|
||||
# 独立域名形态:把 DNS 指到这台机器,用 config/nginx/iotlcm.conf 的 website 段接管根路径。
|
||||
# 镜像与 docs 同构(构建上下文 website/,Dockerfile website/Dockerfile)。
|
||||
website:
|
||||
# 官方镜像发布前先本地构建:docker compose --profile with-website up -d --build website
|
||||
# 发布后删掉 build 段,直接用 ACR 镜像。
|
||||
image: 'crpi-qflrqrxoohlkkvgc.cn-chengdu.personal.cr.aliyuncs.com/iotlcm/iotlcm:iotlcm-website-v1.0.4'
|
||||
build:
|
||||
context: ../website
|
||||
dockerfile: Dockerfile
|
||||
args:
|
||||
SITE_BASE: '${WEBSITE_SITE_BASE:-/www/}'
|
||||
container_name: iotlcm-website
|
||||
restart: unless-stopped
|
||||
ports:
|
||||
- "127.0.0.1:8020:80"
|
||||
networks:
|
||||
- iotlcm-network
|
||||
# 探针路径与官网形态一致:默认以 SITE_BASE=/www/ 构建,官网在容器的 /www/ 下。
|
||||
# 若改成独立域名形态(SITE_BASE=/),把这里的 /www/ 改成 /。
|
||||
healthcheck:
|
||||
test: ["CMD", "wget", "--quiet", "--output-document=/dev/null", "http://127.0.0.1/www/"]
|
||||
interval: 10s
|
||||
timeout: 3s
|
||||
retries: 5
|
||||
start_period: 10s
|
||||
profiles:
|
||||
- with-website
|
||||
|
||||
# ---------------- 可选:运营商接口挡板 ----------------
|
||||
# 模拟中国移动 OneLink 接口,用于在没有真实运营商环境时联调整条链路:
|
||||
# admin-svr → worker-svr → upstream-chan → onelink-mock
|
||||
|
||||
Reference in New Issue
Block a user