feat: deploy-node.sh backend takes extra env settings with --env [CI SKIP]

This commit is contained in:
justme committed 2026-10-07 19:40:13 +08:00
1 parent b99b95c738
commit 5528753d45
2 files changed
+9 -3

No files matched your search

+2
View File
@@ -215,6 +215,8 @@ sudo sh deploy-node.sh agent --image-repo registry.oeo.one/moshiro/moshiro-agent
sudo sh deploy-node.sh probe --image-repo registry.oeo.one/moshiro/moshiro-probe --server https://<backend> --join <probe 令牌> --name <name>
# Backend(只支持 Podman,更新策略固定为管理端确认;--port 默认 29181,环境文件写在 /etc/moshiro/backend.env,已有的不覆盖)
sudo sh deploy-node.sh backend --channel dev --admin-password '<密码>' --public-url https://<面板域名>
# 其他环境变量用 --env 原样写入(只在首次创建 backend.env 时生效):本地开发前端要连这个面板时加
# --env MoShiro__CorsOrigins=http://localhost:5173,http://localhost:5174 --env MoShiro__SecureCookies=false
# 之后更新:不带参数(旧版 Probe 的 probe.json 没有 fleet 段,加上 --server --join --name 重新运行即可,旧文件备份为 probe.json.old)
sudo sh deploy-node.sh agent
```