From 18360ec9c808181924b928bf01f4d1070f7ff68f Mon Sep 17 00:00:00 2001 From: MemRelay Date: Mon, 9 Nov 2026 15:10:06 +0800 Subject: [PATCH] =?UTF-8?q?create:=20=E5=89=8D=E7=AB=AF=E5=8F=91=E5=B8=83?= =?UTF-8?q?=E4=BD=BF=E7=94=A8=20scripts/publish-web.ps1?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit MemRelay-Operation: memory-save:fact-publish-web-script-20261109 MemRelay-Resource: 18484600-c5c3-4124-9621-9a7a3dc0e7ee --- .../前端发布使用 scripts-publish-web.ps1.md | 20 +++++++++++++++++++ 1 file changed, 20 insertions(+) create mode 100644 projects/d5a7f581-c442-4554-87b9-ee723b8b0258/前端发布使用 scripts-publish-web.ps1.md diff --git a/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/前端发布使用 scripts-publish-web.ps1.md b/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/前端发布使用 scripts-publish-web.ps1.md new file mode 100644 index 0000000..2afa709 --- /dev/null +++ b/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/前端发布使用 scripts-publish-web.ps1.md @@ -0,0 +1,20 @@ +--- +title: 前端发布使用 scripts/publish-web.ps1 +type: fact +permalink: main/projects/d5a7f581-c442-4554-87b9-ee723b8b0258/前端发布使用-scripts-publish-web.ps1 +stable_id: 18484600-c5c3-4124-9621-9a7a3dc0e7ee +scope: project +memory_type: fact +project_id: d5a7f581-c442-4554-87b9-ee723b8b0258 +usage_profile_id: 0c9feb46-d06e-43cd-9ef0-c5813c84a998 +status: active +revision: 1 +request_id: fact-publish-web-script-20261109 +created_at: '2026-11-09T07:10:02.554673+00:00' +updated_at: '2026-11-09T07:10:02.554673+00:00' +tags: +- release +- scripts +--- + +前端发布不再为每个 tag 新建 Dockerfile 和 load/side/switch 脚本。命令是仓库根目录的 .\scripts\publish-web.ps1。它用 scripts/docker/Dockerfile.web-overlay 在上一个 metrix-app 镜像上覆盖 web/dist,经 scripts/prod/ssh.py 上传,再跑 scripts/prod/release-web.sh 做加载、旁路健康检查和切换。基线 tag 默认读 Temp/prod/current-web-tag.txt,也可用 -Base 指定。密码用环境变量 METRIX_SSH_PASSWORD,不写进仓库。已构建过前端时加 -SkipNpmBuild。 \ No newline at end of file