Makefile 1022 B

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  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. @mkdir db/persisted || true
  22. up-squid:
  23. @docker network create joystream_default || true
  24. @docker-compose up -d
  25. up-archive:
  26. @docker network create joystream_default || true
  27. @docker-compose -f archive/docker-compose.yml up -d
  28. up: up-archive up-squid
  29. down-squid:
  30. @./db/export.sh
  31. @docker-compose down -v
  32. down-archive:
  33. @docker-compose -f archive/docker-compose.yml down -v
  34. down: down-squid down-archive
  35. .PHONY: build serve process migrate codegen typegen prepare up-squid up-archive up down-squid down-archive down