-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
35 lines (24 loc) · 984 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
up:
XDEBUG_MODE=debug docker compose -f docker-compose.yaml up --build -d
docker exec -it php-albums sh -c "composer install"
# docker exec -it php-albums sh -c "composer require pestphp/pest"
# docker exec -it php-albums sh -c "./vendor/bin/pest --init"
docker exec php-albums sh -c "composer dump-autoload"
docker exec node-albums sh -c "npm install webpack webpack-cli --save-dev"
down:
docker compose -f docker-compose.yaml down
test-php:
docker exec -it php-albums sh -c "./vendor/bin/phpunit --bootstrap ./vendor/autoload.php tests --colors always"
prod:
# unfinished
docker exec php-albums sh -c "composer dump-autoload -o"
watch:
docker exec node-albums sh -c "npm run watch"
build:
docker exec node-albums sh -c "npm run build"
test-js:
docker exec node-albums sh -c "npm run test"
migration-apply:
docker exec php-albums sh -c "php ./scripts/migration/apply.php"
migration-rollback:
docker exec php-albums sh -c "php ./scripts/migration/rollback.php"