PHP Classes

File: Makefile

Recommend this page to a friend!
  Classes of Max Stemplevski   Docker Symfony App   Makefile   Download  
File: Makefile
Role: Auxiliary data
Content type: text/plain
Description: Auxiliary data
Class: Docker Symfony App
Symfony project to deploy using Docker
Author: By
Last change:
Date: 1 year ago
Size: 2,039 bytes
 

Contents

Class file image Download
################## # Variables ################## DOCKER_COMPOSE = docker-compose -f ./docker/docker-compose.yml --env-file ./docker/.env DOCKER_COMPOSE_PHP_FPM_EXEC = ${DOCKER_COMPOSE} exec -u www-data php-fpm APP_URL = 127.0.0.1:888 ################## # Docker compose ################## dc_build: ${DOCKER_COMPOSE} build dc_start: ${DOCKER_COMPOSE} start dc_stop: ${DOCKER_COMPOSE} stop dc_up: ${DOCKER_COMPOSE} up -d --remove-orphans dc_ps: ${DOCKER_COMPOSE} ps dc_logs: ${DOCKER_COMPOSE} logs -f dc_down: ${DOCKER_COMPOSE} down -v --rmi=all --remove-orphans dc_restart: make dc_stop dc_start ################## # App ################## app_bash: ${DOCKER_COMPOSE} exec -u www-data php-fpm bash php: ${DOCKER_COMPOSE} exec -u www-data php-fpm bash test: ${DOCKER_COMPOSE} exec -u www-data php-fpm bin/phpunit jwt: ${DOCKER_COMPOSE} exec -u www-data php-fpm bin/console lexik:jwt:generate-keypair cache: docker-compose -f ./docker/docker-compose.yml exec -u www-data php-fpm bin/console cache:clear docker-compose -f ./docker/docker-compose.yml exec -u www-data php-fpm bin/console cache:clear --env=test check: curl ${APP_URL} ################## # Database ################## db_migrate: ${DOCKER_COMPOSE} exec -u www-data php-fpm bin/console doctrine:migrations:migrate --no-interaction db_diff: ${DOCKER_COMPOSE} exec -u www-data php-fpm bin/console doctrine:migrations:diff --no-interaction db_drop: docker-compose -f ./docker/docker-compose.yml exec -u www-data php-fpm bin/console doctrine:schema:drop --force ################## # Static code analysis ################## phpstan: ${DOCKER_COMPOSE_PHP_FPM_EXEC} vendor/bin/phpstan analyse src tests -c phpstan.neon deptrac: ${DOCKER_COMPOSE_PHP_FPM_EXEC} vendor/bin/deptrac analyze deptrac-layers.yaml ${DOCKER_COMPOSE_PHP_FPM_EXEC} vendor/bin/deptrac analyze deptrac-modules.yaml cs_fix: ${DOCKER_COMPOSE_PHP_FPM_EXEC} vendor/bin/php-cs-fixer fix cs_fix_diff: ${DOCKER_COMPOSE_PHP_FPM_EXEC} vendor/bin/php-cs-fixer fix --dry-run --diff