11# Deployment
22
3+ ## Recommended Free Cloud Combo: Render (API) + Vercel (Web)
4+
5+ This project supports a fully free setup for hobby usage:
6+ - API on Render free web service
7+ - Next.js web app on Vercel Hobby
8+
9+ ### 1) Deploy API on Render
10+
11+ 1 . Open [ Render Dashboard] ( https://dashboard.render.com/ ) .
12+ 2 . Click ** New +** -> ** Blueprint** .
13+ 3 . Connect this repo and deploy using ` /render.yaml ` .
14+ 4 . After deploy, copy your API URL (for example ` https://worldmodel-gym-api.onrender.com ` ).
15+
16+ Notes:
17+ - Render free web services can spin down when idle.
18+ - This repo uses sqlite in ` /tmp ` on Render free tier (ephemeral storage).
19+
20+ ### 2) Deploy Web on Vercel
21+
22+ 1 . Open [ Vercel Dashboard] ( https://vercel.com/new ) and import this GitHub repo.
23+ 2 . Set ** Root Directory** to ` web ` .
24+ 3 . Add environment variable:
25+ - ` NEXT_PUBLIC_API_BASE=https://<your-render-api-url> `
26+ 4 . Deploy.
27+
28+ Optional CLI deploy:
29+
30+ ``` bash
31+ make deploy-vercel
32+ ```
33+
334## Local Production Mode
435
536Run API + web on your machine:
@@ -14,28 +45,27 @@ Stop local services:
1445make stop
1546```
1647
17- ## Public No-Card Deployment (Quick Tunnel)
48+ ## Public No-Card Tunnel Mode
1849
19- This mode does not require Fly.io, cloud billing, or credit card setup.
50+ This mode does not require cloud accounts or credit card setup.
2051It runs services locally and exposes temporary public URLs through ` localtunnel ` .
2152
2253``` bash
2354make deploy-public
2455```
2556
26- The command will:
27- - start API (` uvicorn ` ) on ` 127.0.0.1:8000 `
28- - create a public API tunnel URL
29- - build web with ` NEXT_PUBLIC_API_BASE=<public-api-url> `
30- - start web on ` 127.0.0.1:3000 `
31- - create a public web tunnel URL
32-
33- Stop public deployment:
57+ Stop:
3458
3559``` bash
3660make stop-public
3761```
3862
3963Notes:
40- - Public tunnel URLs are ephemeral and change when restarted.
41- - Keep your machine running while the public URLs are in use.
64+ - URLs are ephemeral and change when restarted.
65+ - Keep your machine running while URLs are in use.
66+
67+ ## References
68+
69+ - Render Free tier and pricing: https://render.com/pricing
70+ - Render blueprint spec (` render.yaml ` ): https://render.com/docs/blueprint-spec
71+ - Vercel plans and Hobby usage: https://vercel.com/pricing
0 commit comments