-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrender.yaml
More file actions
36 lines (29 loc) · 1.08 KB
/
Copy pathrender.yaml
File metadata and controls
36 lines (29 loc) · 1.08 KB
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
32
33
34
35
36
services:
# QuickCart Flask Backend API
- type: web
name: quickcart-api
runtime: python
region: singapore # Choose closest to your target audience (singapore/oregon/frankfurt)
plan: free
branch: main
rootDir: backend
buildCommand: pip install -r requirements.txt
startCommand: gunicorn app:app
healthCheckPath: /health
envVars:
- key: PYTHON_VERSION
value: 3.11.0
- key: FLASK_ENV
value: production
- key: SECRET_KEY
generateValue: true # Render will auto-generate a secure random value
- key: JWT_SECRET_KEY
generateValue: true # Render will auto-generate a secure random value
- key: DATABASE_URL
sync: false # You'll need to add this manually from Supabase
# Optional: Add these manually in Render dashboard if you need OTP/SMS
# - key: TWILIO_ACCOUNT_SID
# - key: TWILIO_AUTH_TOKEN
# - key: TWILIO_PHONE_NUMBER
# - key: REACT_APP_FAST2SMS_API_KEY
autoDeploy: true # Auto-deploy when you push to GitHub