-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathrender.yaml
More file actions
45 lines (39 loc) · 1.02 KB
/
render.yaml
File metadata and controls
45 lines (39 loc) · 1.02 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
# Quick links to the docs:
# - Redwood on Render: https://render.com/docs/deploy-redwood
# - Render's Blueprint spec: https://render.com/docs/yaml-spec
services:
- name: CodeGoat-web
type: web
env: static
buildCommand: corepack enable && yarn install && yarn rw deploy render web
staticPublishPath: ./web/dist
envVars:
- key: SKIP_INSTALL_DEPS
value: true
routes:
- type: rewrite
source: /.redwood/functions/*
# Replace `destination` here after your first deploy:
#
# ```
# destination: https://my-redwood-project-api.onrender.com/*
# ```
destination: https://codegoat.onrender.com/*
- type: rewrite
source: /*
destination: /200.html
- name: CodeGoat-api
type: web
plan: free
env: node
region: oregon
buildCommand: corepack enable && yarn install && yarn rw build api
startCommand: yarn rw deploy render api
envVars:
- key: DATABASE_URL
fromDatabase:
name: CodeGoat-db
property: connectionString
databases:
- name: CodeGoat-db
region: oregon