-
Notifications
You must be signed in to change notification settings - Fork 23
Expand file tree
/
Copy pathrender.yaml
More file actions
22 lines (22 loc) 路 820 Bytes
/
Copy pathrender.yaml
File metadata and controls
22 lines (22 loc) 路 820 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
# Render deployment for the Moodify Django API.
#
# This is an alternative to the Vercel deployment (docs/
# PRODUCTION_REFACTOR_PLAN.md 搂5) -- Render runs Django as a long-lived
# gunicorn process. ML inference is NOT here; it runs on Modal.
#
# Set the secret env vars (MONGO_DB_URI, JWT_SIGNING_KEY,
# MODAL_INFERENCE_URL, MODAL_SERVICE_TOKEN, CORS_ALLOWED_ORIGINS, ...) in
# the Render dashboard -- see backend/.env.example.
services:
- type: web
name: moodify-backend
runtime: python
rootDir: backend
plan: free
buildCommand: pip install -r requirements.txt && python manage.py collectstatic --noinput
startCommand: gunicorn backend.wsgi:application --bind 0.0.0.0:$PORT --workers 3
envVars:
- key: PYTHON_VERSION
value: 3.11.9
- key: DEBUG
value: "False"