Update docs

This commit is contained in:
Arjun Komath
2026-01-31 21:00:38 +11:00
parent 8917271288
commit 453e36ebf1
3 changed files with 7 additions and 9 deletions
+2 -2
View File
@@ -54,9 +54,9 @@ INTERNAL_GATEWAY_HOST=127.0.0.1
OPENCLAW_CONFIG_PATH= OPENCLAW_CONFIG_PATH=
# Path to the openclaw CLI entry point # Path to the openclaw CLI entry point
# Default: /openclaw/dist/entry.js # Default: /usr/local/lib/node_modules/openclaw/dist/entry.js
# Leave empty unless using a custom build # Leave empty unless using a custom build
OPENCLAW_ENTRY=/openclaw/dist/entry.js OPENCLAW_ENTRY=/usr/local/lib/node_modules/openclaw/dist/entry.js
# Node.js executable to use # Node.js executable to use
# Default: node # Default: node
+5 -5
View File
@@ -15,7 +15,7 @@ The wrapper manages the OpenClaw lifecycle: onboarding → gateway startup → t
## Development Commands ## Development Commands
```bash ```bash
# Local development (requires OpenClaw in /openclaw or OPENCLAW_ENTRY set) # Local development (requires OpenClaw installed globally or OPENCLAW_ENTRY set)
npm run dev npm run dev
# Production start # Production start
@@ -28,7 +28,7 @@ npm run lint
## Docker Build & Local Testing ## Docker Build & Local Testing
```bash ```bash
# Build the container (builds OpenClaw from source) # Build the container
docker build -t openclaw-railway-template . docker build -t openclaw-railway-template .
# Run locally with volume # Run locally with volume
@@ -74,7 +74,7 @@ open http://localhost:8080/setup # password: test
- **setup.html**: Setup wizard HTML structure - **setup.html**: Setup wizard HTML structure
- **styles.css**: Setup wizard styling (extracted from inline styles) - **styles.css**: Setup wizard styling (extracted from inline styles)
- **setup-app.js**: Client-side JS for `/setup` wizard (vanilla JS, no build step) - **setup-app.js**: Client-side JS for `/setup` wizard (vanilla JS, no build step)
- **Dockerfile**: Multi-stage build (builds OpenClaw from source, installs wrapper deps) - **Dockerfile**: Single-stage build (installs OpenClaw via npm, installs wrapper deps)
### Environment Variables ### Environment Variables
@@ -89,7 +89,7 @@ open http://localhost:8080/setup # password: test
- `OPENCLAW_GATEWAY_TOKEN` — auth token for gateway (auto-generated if unset) - `OPENCLAW_GATEWAY_TOKEN` — auth token for gateway (auto-generated if unset)
- `PORT` — wrapper HTTP port (default 8080) - `PORT` — wrapper HTTP port (default 8080)
- `INTERNAL_GATEWAY_PORT` — gateway internal port (default 18789) - `INTERNAL_GATEWAY_PORT` — gateway internal port (default 18789)
- `OPENCLAW_ENTRY` — path to `entry.js` (default `/openclaw/dist/entry.js`) - `OPENCLAW_ENTRY` — path to `entry.js` (default `/usr/local/lib/node_modules/openclaw/dist/entry.js`)
### Authentication Flow ### Authentication Flow
@@ -163,7 +163,7 @@ Edit `buildOnboardArgs()` (src/server.js:442-496) to add new CLI flags or auth p
- Template must mount a volume at `/data` - Template must mount a volume at `/data`
- Must set `SETUP_PASSWORD` in Railway Variables - Must set `SETUP_PASSWORD` in Railway Variables
- Public networking must be enabled (assigns `*.up.railway.app` domain) - Public networking must be enabled (assigns `*.up.railway.app` domain)
- OpenClaw version is pinned via Docker build arg `OPENCLAW_GIT_REF` (default: `main`) - OpenClaw is installed via `npm install -g openclaw@latest` during Docker build
## Serena Semantic Coding ## Serena Semantic Coding
-2
View File
@@ -191,8 +191,6 @@
<div x-text="status">Loading...</div> <div x-text="status">Loading...</div>
<div style="margin-top: 0.75rem"> <div style="margin-top: 0.75rem">
<a href="/openclaw" target="_blank">Open OpenClaw UI</a> <a href="/openclaw" target="_blank">Open OpenClaw UI</a>
&nbsp;|&nbsp;
<a href="/setup/export" target="_blank">Download backup (.tar.gz)</a>
</div> </div>
</div> </div>