-
Notifications
You must be signed in to change notification settings - Fork 14
/
coherence.yml
51 lines (38 loc) · 1.2 KB
/
coherence.yml
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
api:
type: backend
repo_path: coherence
url_path: /api
prod:
command: ["yarn", "rw", "build", "api", "&&", "yarn", "rw", "serve", "api", "--apiRootPath=/api"]
dev:
command: ["yarn", "rw", "build", "api", "&&", "yarn", "rw", "dev", "api", "--apiRootPath=/api"]
local_packages: ["node_modules"]
system:
cpu: 2
memory: 2G
health_check: "/api/health"
resources:
- name: coherence-db
engine: postgres
version: 15
type: database
adapter: postgresql
# If you use data migrations, use the following instead:
# migration: ["yarn", "rw", "prisma", "migrate", "deploy", "&&", "yarn", "rw", "data-migrate", "up"]
#
# To seed the database, use the following instead:
# migration: ["yarn", "rw", "prisma", "generate", "&&", "yarn", "rw", "prisma", "db", "seed"]
migration: ["yarn", "rw", "prisma", "migrate", "deploy"]
web:
type: frontend
repo_path: coherence
build: ["yarn", "rw", "build", "web", "--no-prerender"]
assets_path: web/dist
prod:
command: ["yarn", "rw", "serve", "web"]
dev:
command: ["yarn", "rw", "dev", "web", "--fwd=\"--allowed-hosts all\""]
local_packages: ["node_modules"]
system:
cpu: 2
memory: 2G