Makefile 528 B

123456789101112131415161718192021222324252627282930
  1. ifeq (dev, $(ENV))
  2. dc = docker-compose -f docker-compose.yml -f docker-compose.dev.yml
  3. else
  4. dc = docker-compose
  5. endif
  6. build_shared:
  7. cd shared && npm run build
  8. build_bot: build_shared
  9. cd bot && npm run build
  10. build_web: build_shared
  11. cd web && npm run build
  12. build:
  13. $(dc) build
  14. start_env: build
  15. $(dc) up db adminer facedetect
  16. start: build
  17. $(dc) up db adminer noctbot web facedetect
  18. start_bot: build
  19. $(dc) up db adminer noctbot facedetect
  20. start_web: build
  21. $(dc) up db adminer web