forked from render-examples/preview-environment
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathrender.yaml
More file actions
41 lines (41 loc) · 968 Bytes
/
render.yaml
File metadata and controls
41 lines (41 loc) · 968 Bytes
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
previewsEnabled: true
previewsExpireAfterDays: 1
services:
- type: web
plan: standard
previewPlan: starter
name: robdimarco-express-backend
env: node
buildCommand: cd backend && yarn
startCommand: cd backend && yarn start
envVars:
- key: MY_API_KEY
value: production-api-key
previewValue: test-api-key
- key: DB_CONNECTION_STRING
fromDatabase:
name: robdimarco_postgres_db
property: connectionString
- type: web
name: robdimarco-render-todo
env: static
buildCommand: cd frontend && yarn install && yarn build
staticPublishPath: ./frontend/build
envVars:
- key: REACT_APP_API_HOST
fromService:
type: web
name: robdimarco-express-backend
property: host
# This is an example of an image
- type: pserv
name: robdimarco-memcached
env: image
image:
url: memcached
databases:
- name: robdimarco_postgres_db
databaseName: test_db
user: test_user
plan: standard
previewPlan: starter