Skip to content

Commit 8753f65

Browse files
committed
COS-123 Add backend Railway deploy README for fast setup
1 parent 9ab5dfc commit 8753f65

File tree

1 file changed

+39
-0
lines changed

1 file changed

+39
-0
lines changed

cortex_core/README.md

Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
# CortexOS Backend (Railway)
2+
3+
## Quick Deploy
4+
5+
From the repository root:
6+
7+
```bash
8+
cd /path/to/CortexOSLLM
9+
railway login
10+
railway init
11+
railway up
12+
```
13+
14+
This backend is deployed with:
15+
- `Dockerfile` (root)
16+
- `railway.toml` (root)
17+
18+
Railway injects `PORT`; container startup already uses it:
19+
20+
```bash
21+
uvicorn cortex_core.api.server:app --host 0.0.0.0 --port ${PORT:-8420}
22+
```
23+
24+
## Verify After Deploy
25+
26+
Replace `<your-railway-domain>` with your Railway URL:
27+
28+
```bash
29+
curl https://<your-railway-domain>/health
30+
```
31+
32+
Expected response includes:
33+
- `status: "ok"`
34+
- `timestamp`
35+
36+
## Notes
37+
38+
- Data is stored in container home (`~/.cortexos`) and is ephemeral unless you attach a Railway volume.
39+
- CORS is currently open (`allow_origins=["*"]`) in `cortex_core/api/server.py`.

0 commit comments

Comments
 (0)