-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
55 lines (42 loc) · 1.64 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
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
.PHONY: help
help:
@fgrep -h "##" $(MAKEFILE_LIST) | sed -e 's/\(\:.*\#\#\)/\:\ /' | fgrep -v fgrep | sed -e 's/\\$$//' | sed -e 's/##//'
.PHONY: cs-fix
cs-fix: ## Run cs-fixer
docker compose run app vendor/bin/php-cs-fixer fix --show-progress=dots --allow-risky=yes
.PHONY: phpstan
phpstan: ## Run phpstan
docker compose run app vendor/bin/phpstan
.PHONY: cs-fix-check
cs-fix-check: ## Run cs-fixer
docker compose run app vendor/bin/php-cs-fixer fix --show-progress=dots --allow-risky=yes --dry-run
.PHONY: server-start
server-start: ## Start server
docker compose up -d
.PHONY: server-stop
server-stop: ## Start server
docker compose down
.PHONY: server-console
server-console: ## Exec server bin/console
docker compose exec -it app bin/console
.PHONY: server-shell
server-shell: ## Exec server console
docker compose exec -it app sh
.PHONY: composer-install
composer-install: ## Install composer dependencies
docker compose exec -it app composer install
.PHONY: composer-update
composer-update: ## Update composer dependencies
docker compose exec -it app composer update
.PHONY: migrations-migrate
migrations-migrate: ## Migrate migrations
docker compose exec -it app bin/console doctrine:migrations:migrate --no-interaction
.PHONY: migrations-diff
migrations-diff: ## Create migration based on database <-> entities diff
docker compose exec -it app bin/console doctrine:migrations:diff --no-interaction
.PHONY: database-drop
database-drop: ## Drop database
docker compose exec -it app bin/console doctrine:database:drop --force
.PHONY: database-create
database-create: ## Create database
docker compose exec -it app bin/console doctrine:database:create