-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
36 lines (27 loc) · 880 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
# container run
up:
docker compose -f docker-compose.yml up -d
build:
docker compose -f docker-compose.yml up -d --build
down:
docker compose -f docker-compose.yml down
# container join
php:
docker compose -f docker-compose.yml exec php sh;
nginx:
docker compose -f docker-compose.yml exec nginx sh;
node:
docker compose -f docker-compose.yml exec node sh;
init\:env:
make up
docker compose -f docker-compose.yml exec php composer install
docker compose -f docker-compose.yml exec php php artisan key:generate
docker compose -f docker-compose.yml exec php php artisan migrate
# code clean
phpstan:
docker compose -f docker-compose.yml exec php vendor/bin/phpstan analyse -c config/phpstan.neon --memory-limit 2048M
csfix:
docker compose -f docker-compose.yml exec php vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php
fix:
make csfix
make phpstan