Makefile 1.0 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051
  1. process: migrate
  2. @SQD_DEBUG=sqd:processor:mapping node -r dotenv-expand/config lib/processor.js
  3. install:
  4. @npm install
  5. build:
  6. @npm run build
  7. build-docker:
  8. @docker build . -t joystream/orion
  9. serve:
  10. @npx squid-graphql-server --subscriptions
  11. migrate:
  12. @npx squid-typeorm-migration apply
  13. dbgen:
  14. @npx squid-typeorm-migration generate
  15. codegen:
  16. @npm run generate:schema || true
  17. @npx squid-typeorm-codegen
  18. typegen:
  19. @npx squid-substrate-typegen typegen.json
  20. prepare: install codegen build
  21. up-squid:
  22. @docker network create joystream_default || true
  23. @docker-compose up -d
  24. up-archive:
  25. @docker network create joystream_default || true
  26. @docker-compose -f archive/docker-compose.yml up -d
  27. up: up-archive up-squid
  28. down-squid:
  29. @docker-compose stop orion_processor
  30. @npm run offchain-state:export && docker-compose down -v
  31. down-archive:
  32. @docker-compose -f archive/docker-compose.yml down -v
  33. down: down-squid down-archive
  34. .PHONY: build serve process migrate codegen typegen prepare up-squid up-archive up down-squid down-archive down