-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
50 lines (37 loc) · 1.06 KB
/
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
44
45
46
47
48
49
50
build:
docker build -t php-project-prod:latest .
build-dev:
docker build -t php-project-dev:latest --build-arg IS_DEV=true .
composer:
php ci-cd/composer.phar install
# Note: must run make docker-up first for redis support
server-dev: build-dev
docker run --rm -it -p 8080:8080 \
-e XDEBUG_SESSION=phpproject \
-e PHP_IDE_CONFIG=serverName=dockerinternal \
-e IS_DEV=1 \
-v "${PWD}:/app:ro" php-project-dev:latest
server-prod: build
docker run --rm -it -p 8080:8080 php-project-prod:latest
docker-up:
docker-compose up -d
docker-down:
docker-compose stop
client-setup:
npm install
# Auto watch and compile scss to css in a terminal
# Ctrl-c to exit
watch:
npm run watch
fixer:
echo "Running php-cs-fixer in real mode..."
vendor/bin/php-cs-fixer fix --config=.php-cs-fixer.dist.php
psalm:
echo "Running psalm..."
vendor/bin/psalm
# Formats all code and runs static analysis checking
fix-all: fixer psalm
# Build assets for production.
# You should run this right before going live, and commit all the changes it produces!
assets:
./ci-cd/build-prod-assets.sh