Add Render blueprint deployment config
Browse files- README.md +21 -0
- render.yaml +32 -0
README.md
CHANGED
|
@@ -137,3 +137,24 @@ Sample PDFs used during development are in `test_documents/`.
|
|
| 137 |
|
| 138 |
- Live deployed URL: _add your deployed link here_
|
| 139 |
- Loom walkthrough (<5 min): _add your Loom link here_
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 137 |
|
| 138 |
- Live deployed URL: _add your deployed link here_
|
| 139 |
- Loom walkthrough (<5 min): _add your Loom link here_
|
| 140 |
+
|
| 141 |
+
## Deploy on Render
|
| 142 |
+
|
| 143 |
+
This repo now includes a `render.yaml` Blueprint.
|
| 144 |
+
|
| 145 |
+
1. Push the latest `main` branch to GitHub.
|
| 146 |
+
2. In Render, click **New +** -> **Blueprint**.
|
| 147 |
+
3. Connect GitHub and select this repository.
|
| 148 |
+
4. Render will detect `render.yaml` and create a `docsbot` web service.
|
| 149 |
+
5. Set required secret env vars in Render:
|
| 150 |
+
- `SECRET_KEY`
|
| 151 |
+
- `DATABASE_URL`
|
| 152 |
+
- `GROQ_API_KEY`
|
| 153 |
+
- `SUPABASE_URL`
|
| 154 |
+
- `SUPABASE_SERVICE_ROLE_KEY`
|
| 155 |
+
- optionally `TAVILY_API_KEY`
|
| 156 |
+
6. Deploy and open the generated Render URL.
|
| 157 |
+
|
| 158 |
+
Render uses:
|
| 159 |
+
- Build command: `pip install -e .`
|
| 160 |
+
- Start command: `uvicorn app.main:app --host 0.0.0.0 --port $PORT`
|
render.yaml
ADDED
|
@@ -0,0 +1,32 @@
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 1 |
+
services:
|
| 2 |
+
- type: web
|
| 3 |
+
name: docsbot
|
| 4 |
+
runtime: python
|
| 5 |
+
plan: free
|
| 6 |
+
autoDeploy: true
|
| 7 |
+
buildCommand: pip install -e .
|
| 8 |
+
startCommand: uvicorn app.main:app --host 0.0.0.0 --port $PORT
|
| 9 |
+
healthCheckPath: /
|
| 10 |
+
envVars:
|
| 11 |
+
- key: PYTHON_VERSION
|
| 12 |
+
value: 3.12.2
|
| 13 |
+
- key: SECRET_KEY
|
| 14 |
+
sync: false
|
| 15 |
+
- key: DATABASE_URL
|
| 16 |
+
sync: false
|
| 17 |
+
- key: GROQ_API_KEY
|
| 18 |
+
sync: false
|
| 19 |
+
- key: STORAGE_BACKEND
|
| 20 |
+
value: supabase
|
| 21 |
+
- key: SUPABASE_URL
|
| 22 |
+
sync: false
|
| 23 |
+
- key: SUPABASE_SERVICE_ROLE_KEY
|
| 24 |
+
sync: false
|
| 25 |
+
- key: SUPABASE_STORAGE_BUCKET
|
| 26 |
+
value: documents
|
| 27 |
+
- key: SUPABASE_STORAGE_PREFIX
|
| 28 |
+
value: docsqa
|
| 29 |
+
- key: WEB_SEARCH_PROVIDER
|
| 30 |
+
value: duckduckgo
|
| 31 |
+
- key: TAVILY_API_KEY
|
| 32 |
+
sync: false
|