forked from Joystream/orion
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
57 lines (38 loc) · 1.16 KB
/
Makefile
File metadata and controls
57 lines (38 loc) · 1.16 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
46
47
48
49
50
51
52
53
54
55
56
57
process: migrate
@SQD_DEBUG=sqd:processor:mapping node -r dotenv-expand/config lib/processor.js
install:
@npm install
build:
@npm run build
build-processor-image:
@docker build . --target processor -t orion-processor
build-query-node-image:
@docker build . --target query-node -t orion-api
build-images: build-processor-image build-query-node-image
serve:
@npx squid-graphql-server --subscriptions
migrate:
@npx squid-typeorm-migration apply
dbgen:
@npx squid-typeorm-migration generate
codegen:
@npm run generate:schema || true
@npx squid-typeorm-codegen
typegen:
@npx squid-substrate-typegen typegen.json
prepare: install codegen build
@mkdir db/persisted || true
up-squid:
@docker network create joystream_default || true
@docker-compose up -d
up-archive:
@docker network create joystream_default || true
@docker-compose -f archive/docker-compose.yml up -d
up: up-archive up-squid
down-squid:
@./db/export.sh
@docker-compose down -v
down-archive:
@docker-compose -f archive/docker-compose.yml down -v
down: down-squid down-archive
.PHONY: build serve process migrate codegen typegen prepare up-squid up-archive up down-squid down-archive down