disguise-ui 0.2.7 → 0.2.9

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/README.md CHANGED
@@ -112,3 +112,23 @@ npm run build
112
112
  ```
113
113
 
114
114
  产物在 `dist/disguise-ui.js` 和 `dist/style.css`。
115
+
116
+ ## 自动部署文档站
117
+
118
+ 部署方式与 meeting-vue 一致:本地构建静态产物,打成部署包上传服务器,再通过 Docker Compose 重建容器。首次部署前,请确认本机可以通过 SSH 登录服务器(默认 `ubuntu@110.42.237.20`),服务器已安装 Docker 和 Docker Compose。然后在项目根目录执行:
119
+
120
+ ```bash
121
+ npm run deploy
122
+ ```
123
+
124
+ 脚本会自动生成版本信息、在本地构建文档站、上传部署包并重建容器。部署地址为 `http://110.42.237.20:3006`。
125
+
126
+ 每次构建会把当前分支、提交哈希和最近 5 条提交写入 `version.json`。页面保持打开时会每分钟检查一次新版本,发现更新后展示提交记录;服务器的 `deploy-history.log` 也会追加每次成功部署的提交信息。
127
+
128
+ 可通过环境变量覆盖默认配置,例如:
129
+
130
+ ```bash
131
+ DEPLOY_USER=ubuntu DEPLOY_PORT=22 APP_PORT=3006 npm run deploy
132
+ ```
133
+
134
+ 服务器需要在安全组或防火墙中放行 TCP 端口 `3006`。