-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
executable file
·28 lines (19 loc) · 1.05 KB
/
Makefile
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
.DEFAULT_GOAL := help
help: ## show this help (bash only)
@awk 'BEGIN {FS = ":.*?## "} /^[a-zA-Z_-]+:.*?## / {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}' $(MAKEFILE_LIST)
up: ## starts services (detached)
docker-compose up -d
down: ## stops and removes service containers
docker-compose down
restart: down up ## stop, remove and recreate service containers (down up)
install: ## runs the initial install
docker-compose exec api composer install
docker-compose exec api bin/console --no-interaction doctrine:migrations:migrate
clear_cache: ## clears (symfony) cache
docker-compose exec api bin/console cache:clear
tools_install:
docker-compose exec api composer install --working-dir=tools/php-cs-fixer
format_dry_run: ## checks php formatting in a "dry" run, only showing what files would be affected
docker-compose exec api tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --dry-run --config ./.php-cs
format_fix: ## actually runs php formatting and does FILE CHANGES
docker-compose exec api tools/php-cs-fixer/vendor/bin/php-cs-fixer fix --config ./.php-cs