-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathrender.yaml
More file actions
88 lines (84 loc) · 3.33 KB
/
Copy pathrender.yaml
File metadata and controls
88 lines (84 loc) · 3.33 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
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
# The factory's own gateway, Workflows service, and database, in one project.
#
# This is not the Blueprint that deploys generated apps — that one lives at the
# root of APPS_REPO and is written by app/blueprint.ts.
projects:
- name: vibe-factory
environments:
- name: production
# Keep network isolation off. In an isolated environment, workflow task
# runs cannot use the private network, and the workflow connects to the
# database on that network.
networking:
isolation: disabled
databases:
- name: vibe-factory-db
plan: basic-256mb
services:
- type: web
name: vibe-factory-gateway
runtime: docker
plan: starter
# Applies app/schema.sql before any new instance serves traffic.
preDeployCommand: npm run db:migrate
healthCheckPath: /ready
envVars:
- key: DATABASE_URL
fromDatabase:
name: vibe-factory-db
property: connectionString
- key: APPS_REPO
sync: false
# Generated once when the Blueprint creates the gateway and
# preserved across later syncs.
- key: FACTORY_API_KEY
generateValue: true
- key: UI_USERNAME
sync: false
- key: UI_PASSWORD
sync: false
- key: RENDER_WORKFLOW_SLUG
fromService:
type: workflow
name: vibe-factory-workflows
property: slug
# Used by the Render SDK to start the workflow task.
- key: RENDER_API_KEY
sync: false
# Runs every task that app/host.ts registers. The model key and the
# GitHub credential are set only here, never on the gateway.
- type: workflow
name: vibe-factory-workflows
runtime: node
repo: https://github.com/render-examples/vibe-code-demo
# A workflow must set its region. Task runs connect to the database
# on the private network, and that network does not cross regions.
# Use the same region as the database, which is oregon by default.
region: oregon
buildCommand: npm ci --omit=dev
startCommand: npm run start:workflows
envVars:
- key: DATABASE_URL
fromDatabase:
name: vibe-factory-db
property: connectionString
- key: APPS_REPO
sync: false
# Sandboxes, the Render MCP server, Blueprint reads, and the
# deletes of a deleted app's resources.
- key: RENDER_API_KEY
sync: false
- key: RENDER_WORKSPACE_ID
sync: false
- key: ANTHROPIC_API_KEY
sync: false
# Set the three GitHub App variables or GITHUB_TOKEN. Each option
# needs Contents: write on APPS_REPO.
- key: GITHUB_APP_ID
sync: false
- key: GITHUB_APP_PRIVATE_KEY
sync: false
- key: GITHUB_APP_INSTALLATION_ID
sync: false
- key: GITHUB_TOKEN
sync: false