mirror of
https://github.com/arjunkomath/openclaw-railway-template.git
synced 2026-08-14 00:48:11 +00:00
Update docs
This commit is contained in:
+2
-2
@@ -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
|
||||||
|
|||||||
@@ -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
|
||||||
|
|
||||||
|
|||||||
@@ -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>
|
||||||
|
|
|
||||||
<a href="/setup/export" target="_blank">Download backup (.tar.gz)</a>
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user