-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
42 lines (36 loc) · 2.36 KB
/
Copy pathrender.yaml
File metadata and controls
42 lines (36 loc) · 2.36 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
37
38
39
40
41
42
# render.yaml — RespiroSync Render.com deployment
# Deploy the phase–memory operator dashboard as a web service.
# Docs: https://render.com/docs/infrastructure-as-code
services:
- type: web
name: respirosync-dashboard
runtime: python
region: oregon # Render free-tier region; change to suit your latency needs
plan: free # Use "starter" or higher for production
# ── Build step ──────────────────────────────────────────────────
# Install only the server dependencies (Flask, NumPy, SciPy).
# The validation pipeline modules are imported directly from the
# repo checkout — no separate package installation needed.
buildCommand: pip install -r requirements.txt
# ── Start command ────────────────────────────────────────────────
# Render sets the PORT environment variable automatically.
# gunicorn binds directly to 0.0.0.0:$PORT so Render can detect
# the open HTTP port reliably (Flask's dev server is not suitable
# for production and can cause "No open HTTP ports detected" errors).
startCommand: gunicorn --bind 0.0.0.0:${PORT:-5000} --chdir server app:app
# ── Health check ─────────────────────────────────────────────────
# Render pings this path to verify the service is live.
# /ping is unauthenticated; /api/status requires a JWT so it would
# always return 401 and cause Render to mark the service as unhealthy.
healthCheckPath: /ping
# ── Auto-deploy ──────────────────────────────────────────────────
autoDeploy: true
# ── Environment variables ────────────────────────────────────────
# PORT is injected automatically by Render.
# Add any secrets (API keys, etc.) in the Render dashboard UI
# under Environment → Secret Files or as "Secret" env vars.
envVars:
- key: PYTHON_VERSION
value: "3.11.0"
- key: FLASK_ENV
value: production