-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
31 lines (27 loc) · 938 Bytes
/
render.yaml
File metadata and controls
31 lines (27 loc) · 938 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
# render.yaml — 1-click backend deploy to Render.com
# Place this in project root. Then:
# 1. Push to GitHub
# 2. Go to https://dashboard.render.com/select-repo
# 3. Select this repo → Auto-detects render.yaml
services:
- type: web
name: news-python-api
runtime: python
env: python
envVars:
- key: PYTHON_VERSION
value: 3.11 # Stable LTS; avoids 3.13+ breakage
region: oregon # or frankfurt, singapore, etc.
plan: free # Free tier (512MB RAM, sleeps after 15m)
# Build & run
buildCommand: "pip install -r requirements.txt"
startCommand: "python main.py"
# Environment
envVars:
- key: PORT
value: 10000 # Required by Render
- key: PYTHON_VERSION
value: 3.11 # Match your local version
# Health check (improves reliability)
healthCheckPath: /api/health
healthCheckInterval: 30