You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
* refactor: remove CLAWDBOT_* backward-compat env var aliases
Only OPENCLAW_* environment variables are now used:
- OPENCLAW_PUBLIC_PORT
- OPENCLAW_STATE_DIR
- OPENCLAW_WORKSPACE_DIR
- OPENCLAW_GATEWAY_TOKEN
- OPENCLAW_CONFIG_PATH
* feat: add CLAWDBOT_* backward compat shim with deprecation warnings
Add getEnvWithShim() helper that:
- Prefers OPENCLAW_* vars
- Falls back to CLAWDBOT_* with console.warn deprecation message
- Logs each deprecated var only once to avoid spam
Shimmed vars:
- OPENCLAW_PUBLIC_PORT / CLAWDBOT_PUBLIC_PORT
- OPENCLAW_STATE_DIR / CLAWDBOT_STATE_DIR
- OPENCLAW_WORKSPACE_DIR / CLAWDBOT_WORKSPACE_DIR
- OPENCLAW_GATEWAY_TOKEN / CLAWDBOT_GATEWAY_TOKEN
- OPENCLAW_CONFIG_PATH / CLAWDBOT_CONFIG_PATH
* docs: explain MOLTBOT_* vars are not shimmed
This repo never shipped with MOLTBOT prefixes, so no existing
deployments rely on them. Only CLAWDBOT_* vars have backward compat.
* docs: note custom domains use port 8080
* chore(docs): type env shim helpers
---------
Co-authored-by: vignesh07 <vigneshnatarajan92@gmail.com>
Copy file name to clipboardExpand all lines: README.md
+2Lines changed: 2 additions & 0 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -37,8 +37,10 @@ Optional:
37
37
38
38
Notes:
39
39
- This template pins OpenClaw to a known-good version by default via Docker build arg `OPENCLAW_GIT_REF`.
40
+
-**Backward compatibility:** The wrapper includes a shim for `CLAWDBOT_*` environment variables (logs a deprecation warning when used). `MOLTBOT_*` variables are **not** shimmed — this repo never shipped with MOLTBOT prefixes, so no existing deployments rely on them.
40
41
41
42
4) Enable **Public Networking** (HTTP). Railway will assign a domain.
43
+
- This service is configured to listen on port `8080` (including custom domains).
0 commit comments