Add Railway deployment for web UI

This commit is contained in:
2026-06-29 20:33:17 -05:00
parent 11eb1d54d6
commit d9d997d912
4 changed files with 62 additions and 0 deletions
+15
View File
@@ -65,6 +65,21 @@ and `/apt` to `urapt-server`. No CORS, no server changes — the API base is jus
pnpm build # outputs dist/
```
### Railway
`urapt-web/` includes a Dockerfile for deploying the UI as a separate Railway
service. The container builds the Vite app and serves it with Caddy, proxying
`/api/*` and `/apt/*` to an existing `urapt-server` service.
In Railway, create a new service from this repo with:
- Root Directory: `urapt-web`
- Environment variable: `URAPT_SERVER_URL=https://your-urapt-server.up.railway.app`
Do not set `VITE_API_BASE_URL` for this deployment; the UI should keep using the
default same-origin `/api/v1` path.
### Caddy
```caddy