File tree Expand file tree Collapse file tree 1 file changed +39
-0
lines changed
Expand file tree Collapse file tree 1 file changed +39
-0
lines changed Original file line number Diff line number Diff line change 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 ` .
You can’t perform that action at this time.
0 commit comments