-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
48 lines (33 loc) · 892 Bytes
/
Copy pathMakefile
File metadata and controls
48 lines (33 loc) · 892 Bytes
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
.PHONY: help up down install test pint pint-test lint clean restart logs shell autoload fresh setup check
help:
@echo 'Usage: make [target]'
@echo ''
@echo 'Targets:'
@egrep '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf " \033[36m%-15s\033[0m %s\n", $$1, $$2}'
up:
docker compose up -d
down:
docker compose down
restart:
docker compose restart
logs:
docker compose logs -f
shell:
docker compose exec app bash
install: up
docker compose exec app composer install
test:
docker compose exec app composer test
pint:
docker compose exec app composer pint
pint-test:
docker compose exec app composer pint:test
lint: pint
autoload:
docker compose exec app composer dump-autoload
fresh: down up install
@echo "Environment is ready!"
setup: fresh test
@echo "Setup complete!"
check: pint-test test
@echo "All checks passed!"