123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051 |
- process: migrate
- @SQD_DEBUG=sqd:processor:mapping node -r dotenv-expand/config lib/processor.js
- install:
- @npm install
- build:
- @npm run build
- build-docker:
- @docker build . -t joystream/orion
- 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
- 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:
- @docker-compose stop orion_processor
- @npm run offchain-state:export && 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
|