#!/usr/bin/make build_stack: docker-compose build && \ docker-compose up -d build_bedrock: docker exec -it -u root php-fpm sh -c \ "chown -R 1000:1000 /app/public && \ npm install --global yarn && \ touch /.yarnrc && \ chown 1000 /.yarnrc && \ chmod +r /.yarnrc && \ mkdir /.cache && \ chown 1000 /.cache && \ chmod +r /.cache" &&\ docker exec -it -w /app/public php-fpm sh -c \ "composer create-project roots/bedrock && \ cd bedrock && \ composer update && \ composer require roots/acorn && \ composer require wpackagist-plugin/redis-cache && \ echo \"define('WP_REDIS_HOST', 'redis');\" >> /app/public/bedrock/config/application.php && \ echo \"define('WP_REDIS_PORT', '6379');\" >> /app/public/bedrock/config/application.php" && \ cp Docker/php/.env src/bedrock/.env build_theme: docker exec -it -w /app/public/bedrock/web/app/themes php-fpm sh -c \ "composer create-project roots/sage partition-jlg-theme" && \ cp Docker/php/bud.config.js src/bedrock/web/app/themes/partition-jlg-theme/bud.config.js && \ docker exec -it -w /app/public/bedrock/web/app/themes/partition-jlg-theme php-fpm sh -c \ "yarn && \ yarn build" install_theme: docker exec -it -w /app/public/bedrock/web/app/themes/partition-jlg-theme php-fpm sh -c \ "yarn && \ yarn build"