forked from digitalocean/sample-functions-nodejs-calculator
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathapp-spec.yaml
40 lines (40 loc) · 833 Bytes
/
app-spec.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
alerts:
- rule: DEPLOYMENT_FAILED
- rule: DOMAIN_FAILED
databases:
- cluster_name: functions-redis
engine: REDIS
name: functions-redis
production: true
version: "6"
functions:
- envs:
- key: DATABASE_URL
scope: RUN_TIME
value: ${functions-redis.REDIS_URL}
github:
branch: master
deploy_on_push: true
repo: digitalocean/sample-functions-nodejs-calculator
name: calculator-api
routes:
- path: /api
source_dir: /
name: calculator
region: nyc
static_sites:
- build_command: ./build.sh
environment_slug: html
envs:
- key: FUNCTION_API_URL
scope: BUILD_TIME
value: ${calculator-api.PUBLIC_URL}
github:
branch: master
deploy_on_push: true
repo: digitalocean/sample-functions-nodejs-calculator
name: web-app
output_dir: dist
routes:
- path: /
source_dir: /client