@gbits-jszx/gw-cli 2026.9.14-5 → 2026.9.14-6
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
|
@@ -108,6 +108,8 @@ go run ./tools/cli --project-id gw-demo run all
|
|
|
108
108
|
|
|
109
109
|
基础默认值仍为 `tools/helm/default/values.yaml`;`--profile beta` / `--profile release` 选择 Chart 内 profile,`--values` 额外覆盖,未指定 profile 时只用基础默认值。`--release` 仅表示 Helm 实例名。
|
|
110
110
|
|
|
111
|
+
当前 GAuth 三套 values 分别声明 `gauth-dev.g-bits.com`、`gauth-test.g-bits.com`、`gauth.g-bits.com` 及各自的 TLS/登录 Secret。Secret 仍属于 `--project-id` 推导出的 namespace;通过 `deploy k3s init` 显式导入,CLI 不从项目代号猜测证书或密码。WSL 只为 dev 域名使用 `--windows-hosts`,beta/release 由正式 DNS/LB 解析。
|
|
112
|
+
|
|
111
113
|
本地 `run all` 除了通用宿主、`local.*` 配置和本机持久 PostgreSQL,还会根据 `local.demo` 启动仓库内置登录与 Hello Demo,本地演示账号和密码固定为 `demo/demo`;不读取用户环境变量。Helm/k3s 部署仍由对应应用 values 与 Secret 管理。显式 `--database temporary` 使用随机密码,退出时回收。
|
|
112
114
|
|
|
113
115
|
Go 项目的 `build`、`run`、`test` 需要源码和 Go。本仓库默认 `run` 还需要已由 `db start` 启动的本机 PostgreSQL,以及 Windows 上执行统一迁移脚本所需的 Git for Windows;只有 `--database temporary` 需要 Docker。`run` 会按目标先构建,再启动 `.gw-build/local/` 下对应二进制;Windows 启动 `.exe`,省略目标时等同 `build all`。如果旧 app 仍占用任一 app 端口,`run` 直接失败,不会自动终止旧进程。npm 发布使用当前平台 npm;镜像命令优先使用当前平台 Docker,Windows 缺少 Docker 时转 WSL;Chart 推送在 Windows 默认走 WSL,可用 `--wsl=false` 切换。平台能力由 `doctor` 输出。
|
|
@@ -120,7 +122,7 @@ Go 项目的 `build`、`run`、`test` 需要源码和 Go。本仓库默认 `run`
|
|
|
120
122
|
go run ./tools/cli --project-id gw-demo deploy k3s init --dry-run
|
|
121
123
|
```
|
|
122
124
|
|
|
123
|
-
目标机器需预先安装并运行 k3s、安装 Helm,并允许当前用户访问 kubeconfig;不自动安装 k3s 或 Helm。部署前可运行 `doctor --scope deploy`,该 scope 只检查 Helm/k3s/kubeconfig,不要求 Go、Node.js 或 npm。PostgreSQL 参数使用 `--pgsql-*`,数据库名为 `--pgsql-dbname
|
|
125
|
+
目标机器需预先安装并运行 k3s、安装 Helm,并允许当前用户访问 kubeconfig;不自动安装 k3s 或 Helm。部署前可运行 `doctor --scope deploy`,该 scope 只检查 Helm/k3s/kubeconfig,不要求 Go、Node.js 或 npm。PostgreSQL 参数使用 `--pgsql-*`,数据库名为 `--pgsql-dbname`。已有密码分别复用,首次密码隐藏输入,危险修改需二次确认。显式提供 `--tls-secret-name/--tls-cert-file/--tls-key-file/--tls-host` 可导入公司证书,`--login-secret-name` 创建 Web Demo 登录 Secret;WSL 开发机可加 `--windows-hosts`。完整说明见 [k3s 初始化](../../../docs/user-docs/K3S-INIT.md)。当前 `@latest` 是 `2026.9.14-4`,新增参数在下一个 npm 版本发布后可由 `@latest` 使用。
|
|
124
126
|
|
|
125
127
|
## 发布凭据
|
|
126
128
|
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -9,12 +9,12 @@
|
|
|
9
9
|
"files": [
|
|
10
10
|
"bin"
|
|
11
11
|
],
|
|
12
|
-
"gwVersion": "2026.9.14-
|
|
12
|
+
"gwVersion": "2026.9.14-6",
|
|
13
13
|
"license": "MIT",
|
|
14
14
|
"name": "@gbits-jszx/gw-cli",
|
|
15
15
|
"publishConfig": {
|
|
16
16
|
"access": "public",
|
|
17
17
|
"registry": "https://registry.npmjs.org/"
|
|
18
18
|
},
|
|
19
|
-
"version": "2026.9.14-
|
|
19
|
+
"version": "2026.9.14-6"
|
|
20
20
|
}
|