This repository has been archived by the owner on Mar 8, 2022. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
render.yaml
78 lines (72 loc) · 1.84 KB
/
render.yaml
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
envVarGroups:
- name: prod
envVars:
- key: API_DOMAIN
sync: false
- key: APP_DOMAIN
sync: false
- key: CMS_API_DOMAIN
sync: false
- key: CMS_DOMAIN
sync: false
- name: dev
envVars:
- key: API_DOMAIN
sync: false
- key: APP_DOMAIN
sync: false
- key: CMS_API_DOMAIN
sync: false
- key: CMS_DOMAIN
sync: false
services:
# A static site deployment frontend application for production
- type: web
name: adopt-a-neighbor-frontend-production
env: static
branch: master # optional (uses repo default)
buildCommand: cd frontend; yarn; yarn test; yarn build
staticPublishPath: frontend/build
pullRequestPreviewsEnabled: true # optional
autoDeploy: true
envVars:
- fromGroup: prod
# A Hapi web service for production
- type: web
name: adopt-a-neighbor-api-production
env: node
plan: starter # optional
numInstances: 1
branch: master # optional (uses repo default)
healthCheckPath: /
buildCommand: cd backend; yarn
startCommand: cd backend; yarn start
pullRequestPreviewsEnabled: true # optional
autoDeploy: true
envVars:
- fromGroup: prod
# A static site deployment frontend application for development
- type: web
name: adopt-a-neighbor-frontend-develop
env: static
branch: develop # optional (uses repo default)
buildCommand: cd frontend; yarn; yarn test; yarn build
staticPublishPath: frontend/build
pullRequestPreviewsEnabled: true # optional
autoDeploy: true
envVars:
- fromGroup: dev
# A Hapi web service for development
- type: web
name: adopt-a-neighbor-api-develop
env: node
plan: starter # optional
numInstances: 1
branch: develop # optional (uses repo default)
healthCheckPath: /
buildCommand: cd backend; yarn
startCommand: cd backend; yarn start
pullRequestPreviewsEnabled: true # optional
autoDeploy: true
envVars:
- fromGroup: dev