Makefile 1.3 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. #!/usr/bin/make
  2. build_stack:
  3. docker-compose build && \
  4. docker-compose up -d
  5. build_bedrock:
  6. docker exec -it -u root php-fpm sh -c \
  7. "chown -R 1000:1000 /app/public && \
  8. npm install --global yarn && \
  9. touch /.yarnrc && \
  10. chown 1000 /.yarnrc && \
  11. chmod +r /.yarnrc && \
  12. mkdir /.cache && \
  13. chown 1000 /.cache && \
  14. chmod +r /.cache" &&\
  15. docker exec -it -w /app/public php-fpm sh -c \
  16. "composer create-project roots/bedrock && \
  17. cd bedrock && \
  18. composer update && \
  19. composer require roots/acorn && \
  20. composer require wpackagist-plugin/redis-cache && \
  21. echo \"define('WP_REDIS_HOST', 'redis');\" >> /app/public/bedrock/config/application.php && \
  22. echo \"define('WP_REDIS_PORT', '6379');\" >> /app/public/bedrock/config/application.php" && \
  23. cp Docker/php/.env src/bedrock/.env
  24. build_theme:
  25. docker exec -it -w /app/public/bedrock/web/app/themes php-fpm sh -c \
  26. "composer create-project roots/sage partition-jlg-theme" && \
  27. cp Docker/php/bud.config.js src/bedrock/web/app/themes/partition-jlg-theme/bud.config.js && \
  28. docker exec -it -w /app/public/bedrock/web/app/themes/partition-jlg-theme php-fpm sh -c \
  29. "yarn && \
  30. yarn build"
  31. install_theme:
  32. docker exec -it -w /app/public/bedrock/web/app/themes/partition-jlg-theme php-fpm sh -c \
  33. "yarn && \
  34. yarn build"