-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrender.yaml
More file actions
34 lines (32 loc) · 1 KB
/
render.yaml
File metadata and controls
34 lines (32 loc) · 1 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
# Paid tiers only (no free DB). Plans match https://render.com/docs/yaml-spec
services:
- type: web
name: webhook-playground
runtime: node
plan: standard
# Migrations need DATABASE_URL; it is always available here (not always during build).
buildCommand: npm ci && npm run build
preDeployCommand: node scripts/migrate.js
startCommand: npm start
envVars:
- key: DATABASE_URL
fromDatabase:
name: webhook-playground-db
property: connectionString
- type: cron
name: webhook-playground-cleanup
runtime: node
plan: standard
schedule: "0 * * * *"
buildCommand: npm ci
startCommand: node scripts/cleanup.js
envVars:
- key: DATABASE_URL
fromDatabase:
name: webhook-playground-db
property: connectionString
databases:
- name: webhook-playground-db
databaseName: webhook_playground
# Flexible instance type (paid). Alternatives: basic-1gb, basic-4gb, pro-*, accelerated-*
plan: basic-256mb