-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathMakefile
48 lines (35 loc) · 1.33 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
BASE ?= ./
install:
make build start vendor-install genere-jwt-key
start:
docker-compose up -d
stop:
docker stop php-8.1-math phpmyadmin-math mariadb-math node-math
restart:
make stop start
build:
docker-compose build
build-no-cache:
docker-compose build --no-cache
vendor-install:
docker exec php-8.1-math bash -c "composer install --prefer-dist --no-interaction"
node-install:
docker exec node-math bash -c "npm install --force"
clear-cache:
docker exec php-8.1-math bash -c "php bin/console c:c"
warmup-cache:
docker exec php-8.1-math bash -c "php bin/console c:warmup"
genere-jwt-key:
docker exec php-8.1-math bash -c "rm -fr config/jwt"
docker exec php-8.1-math bash -c "php bin/console lexik:jwt:generate-keypair"
fixture:
docker exec php-8.1-math bash -c "php bin/console do:da:dr --force"
docker exec php-8.1-math bash -c "php bin/console d:d:c --no-interaction"
docker exec php-8.1-math bash -c "php bin/console do:mi:mi --no-interaction"
docker exec php-8.1-math bash -c "php bin/console do:fi:lo --no-interaction"
deploy-back:
docker exec php-8.1-math bash -c "composer install --no-dev --optimize-autoloader"
docker exec php-8.1-math bash -c "composer dump-env prod"
docker exec php-8.1-math bash -c "APP_ENV=prod APP_DEBUG=0 php bin/console cache:clear"
deploy-front:
docker exec node-math bash -c "npm run build ${BASE}"