#!/usr/bin/env bash # 轻量重载配置(不 rebuild 镜像、不重建 web/dist、不 down 整栈) # 用法: # ./reload-config.sh # 全部 # ./reload-config.sh web # 容器 nginx(web/nginx.conf) # ./reload-config.sh platform # restart platform(platform/etc/platform.docker.yaml) # ./reload-config.sh gateway # restart gateway # ./reload-config.sh ai # recreate ai(.env) # ./reload-config.sh host-nginx # 宿主机 Nginx + 证书 + verify-root # 行尾:LF set -euo pipefail ROOT="$(cd "$(dirname "$0")" && pwd)" cd "$ROOT" # shellcheck disable=SC1091 . "$ROOT/scripts/lib-aijz-deploy.sh" usage() { cat <&2 usage >&2 exit 1 ;; esac