Configure Render blueprint for production

This commit is contained in:
2026-02-21 12:45:26 -05:00
parent 0c7aa53c8b
commit ff8be5a036

24
render.yaml Normal file
View File

@ -0,0 +1,24 @@
services:
# Backend Protocol - SIBU 2.0
- type: web
name: sibu-backend
env: python
# Instalamos uv primero, luego sincronizamos dependencias
buildCommand: "pip install uv && cd backend && uv sync"
# Iniciamos el servidor de producción con uvicorn
startCommand: "cd backend && uv run uvicorn app.main:app --host 0.0.0.0 --port $PORT"
envVars:
- key: DATABASE_URL
fromDatabase:
name: sibu-db
property: connectionString
- key: ENVIRONMENT
value: production
- key: DEBUG
value: "false"
- key: PYTHON_VERSION
value: 3.13.0
databases:
- name: sibu-db
plan: free # El plan gratuito de Render Postgres