-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrender.yaml
More file actions
62 lines (58 loc) · 2.29 KB
/
render.yaml
File metadata and controls
62 lines (58 loc) · 2.29 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
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
projects:
- name: sf-pulse-python
environments:
- name: production
databases:
- name: sf-pulse-python-db
databaseName: sfpulse
user: sfpulse
plan: basic-256mb
services:
- type: keyvalue
name: sf-pulse-python-realtime
plan: starter
maxmemoryPolicy: noeviction
ipAllowList: []
- type: web
name: sf-pulse-python
runtime: python
plan: starter
# Build the React diagram (Vite -> static/diagram/), then sync Python deps.
buildCommand: |
cd web/diagram && npm ci && npm run build && cd ../..
pip install --upgrade uv && uv sync --frozen
preDeployCommand: uv run python -m bin.migrate
startCommand: uv run uvicorn app.main:app --host 0.0.0.0 --port $PORT
healthCheckPath: /api/healthz
envVars:
- fromGroup: sf-pulse-python-env
- key: DATABASE_URL
fromDatabase:
name: sf-pulse-python-db
property: connectionString
- key: CRON_SECRET
generateValue: true
- key: REDIS_URL
fromService:
name: sf-pulse-python-realtime
type: keyvalue
property: connectionString
- type: cron
name: sf-pulse-python-daily
runtime: python
plan: starter
# 7:00 AM PDT = 14:00 UTC
schedule: "0 14 * * *"
buildCommand: pip install --upgrade uv && uv sync --frozen
startCommand: uv run python -m bin.trigger_workflow
envVars:
- fromGroup: sf-pulse-env
- key: SF_PULSE_WORKFLOW_SLUG
sync: false
# Notes:
# - The workflow worker service (`sf-pulse-python-workflow`) is created manually
# in the Render Dashboard. Render Workflows is not yet first-class in render.yaml.
# See docs/workflow-setup.md for step-by-step instructions.
# - Set the env group `sf-pulse-python-env` in the Dashboard with:
# LLM_API_KEY (OpenAI or Anthropic), LLM_PROVIDER (optional), LLM_MODEL (optional),
# VAPID_PUBLIC_KEY, VAPID_PRIVATE_KEY, VAPID_SUBJECT, APP_URL (optional)