-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrender.yaml
More file actions
55 lines (53 loc) · 1.95 KB
/
render.yaml
File metadata and controls
55 lines (53 loc) · 1.95 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
projects:
- name: Trender
environments:
- name: production
services:
# Next.js Dashboard - Web Service
- type: web
name: trender-dashboard
runtime: node
buildCommand: cd dashboard && npm install && npm run build
startCommand: cd dashboard && npm start
envVars:
- key: DATABASE_URL
fromDatabase:
name: trender-db
property: connectionString
- key: NEXT_PUBLIC_API_URL
value: https://trender-dashboard.onrender.com
- key: NODE_ENV
value: production
# Cron Job - Daily Auth Refresh + Analysis Trigger (6 AM PST / 14:00 UTC)
# Runs refresh_auth.py first (OAuth only), then triggers the workflow.
- type: cron
name: trender-cron
runtime: python
schedule: "0 14 * * *"
buildCommand: cd trigger && pip install -r requirements.txt
startCommand: cd trigger && python trigger.py
envVars:
- key: RENDER_WORKFLOW_SLUG
sync: false
- key: RENDER_API_KEY
sync: false
# GitHub auth — set ONE of the following:
# Option 1: PAT (no database or OAuth credentials needed)
- key: GITHUB_PAT
sync: false
# Option 2: OAuth App (all four required together)
- key: DATABASE_URL
fromDatabase:
name: trender-db
property: connectionString
- key: GITHUB_CLIENT_ID
sync: false
- key: GITHUB_CLIENT_SECRET
sync: false
- key: GITHUB_TOKEN_ENCRYPTION_KEY
sync: false
databases:
# PostgreSQL Database
- name: trender-db
databaseName: trender
plan: basic-256mb