Skip to content

About

Server-side web publish scripts

Resources

Stars

0 stars

Watchers

0 watching

Forks

Latest commit

 

History

1 Commit

Folders and files

NameName
Last commit message
Last commit date
 
 
 
 
 
 

Repository files navigation

beamio-web-publish

用途:Beamio 官网 PWA 网页发布所用的 5 个服务器端脚本。仅供目标服务器在发布流程中按序执行,本仓库不含任何凭据、主机地址或运行数据。

文件:

  • 2-server-build-r9.sh:第 2 步,在服务器上从完整提交构建 PWA 发布件(锁定依赖、构建、生成清单)。
  • downstream/1-server-precheck-r3.sh:第 1 步,发布前预检(pre),以及第 2 步产出后的复核(post)。
  • downstream/3-server-backup-and-switch-r4.sh:第 3 步,备份既有线上文件并切换到新构建。
  • downstream/4-server-targeted-rollback-r4.sh:定向回退,仅放回第 3 步替换过的既有文件,不做整目录恢复。
  • downstream/5-public-readback-r4.sh:公网读回核对。

执行顺序:预检(1 pre)→ 构建(2)→ 复核(1 post)→ 切换(3)→ 读回(5)。需要回退时运行 4,回退后再运行 5 读回。

使用前提:服务器克隆本仓库后,钉住一个完整 commit 并核对每个脚本的 sha256,与发布记录中登记的值一致方可运行。发布件的来源仍为 GitHub 上已审核的完整提交。

About

Server-side web publish scripts

Resources

Stars

0 stars

Watchers

0 watching

Forks

Releases

Packages

Contributors

Languages