-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
43 lines (30 loc) · 819 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
40
41
42
43
container=app
up:
docker-compose up -d
up-debug:
docker-compose up
build:
docker-compose rm -vsf
docker-compose down -v --remove-orphans
docker-compose build
docker-compose up -d
down:
docker-compose down
require:
docker-compose run {container} composer require
require-dev:
docker-compose run {container} composer require --dev
run:
docker-compose run {container} php index.php
jumpin:
docker-compose run {container} bash
test:
docker-compose run {container} ./vendor/bin/phpunit ./tests/
test-file:
docker-compose run {container} ./vendor/bin/phpunit ./tests/ --group $(FILE)
stan:
docker-compose run {container} ./vendor/bin/phpstan analyse $(FILE) --level 7
cs-fixer:
docker-compose run {container} ./vendor/bin/php-cs-fixer fix $(FILE)
tail-logs:
docker-compose logs -f {container}