-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
39 lines (32 loc) · 1021 Bytes
/
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
.PHONY: init
init:
docker compose up -d --build
docker compose exec app composer install
docker compose exec app cp .env.example .env
docker compose exec app php artisan key:generate
docker compose exec app php artisan storage:link
docker compose exec app chmod -R 777 storage bootstrap/cache
.PHONY: app
app:
docker compose exec app bash
.PHONY: migrate
migrate:
docker compose exec app php artisan migrate
docker compose exec app php artisan migrate --env=testing
.PHONY: fresh
fresh:
docker compose exec app php artisan migrate:fresh --seed
.PHONY: seed
seed:
docker compose exec app php artisan db:seed
.PHONY: clear
clear:
docker compose exec app php artisan cache:clear && \
docker compose exec app php artisan config:clear && \
docker compose exec app php artisan route:clear
.PHONY: phpunit
phpunit:
docker compose exec app bash -c "./vendor/bin/phpunit -c phpunit.xml ./tests"
.PHONY: phpstan
phpstan:
docker compose exec app bash -c "./vendor/bin/phpstan analyse --memory-limit=2G"