-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathMakefile
More file actions
42 lines (32 loc) · 929 Bytes
/
Makefile
File metadata and controls
42 lines (32 loc) · 929 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
.PHONY: up down ps logs pma pma-down migrate seed test tinker
# Start all services
up:
docker compose up -d
# Stop all services
down:
docker compose --profile dev down
# Service status
ps:
docker compose --profile dev ps
# View logs (usage: make logs s=php)
logs:
docker compose logs -f $(s)
# Start phpMyAdmin (port configurable: make pma PMA_PORT=9090)
pma:
PMA_PORT=$(or $(PMA_PORT),8080) docker compose --profile dev up -d phpmyadmin
@echo "phpMyAdmin: http://localhost:$(or $(PMA_PORT),8080)"
# Stop phpMyAdmin
pma-down:
docker compose --profile dev stop phpmyadmin
# Run migrations
migrate:
docker compose exec php php artisan migrate
# Run seeders
seed:
docker compose exec php php artisan db:seed
# Run tests (usage: make test or make test f=PileServiceTest)
test:
docker compose exec php php artisan test $(if $(f),--filter=$(f),)
# Laravel tinker
tinker:
docker compose exec php php artisan tinker