-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathMakefile
60 lines (51 loc) · 1.74 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
51
52
53
54
55
56
57
58
59
60
ui-build:
docker-compose pull node
ui-install:
docker-compose run --rm -w /app --no-deps node bash -ci 'yarn install'
ui-upgrade:
docker-compose run --rm -w /app --no-deps node bash -ci 'yarn upgrade'
ui-clear-yarn-cache:
docker-compose run --rm -w /app --no-deps node bash -ci 'yarn cache clean --all'
ui-dev:
docker-compose run --rm -w /app --no-deps node bash -ci 'yarn run dev'
ui-purge:
rm -Rf node_modules/*
composer-purge:
rm -Rf vendor/*
composer-install:
docker-compose run --rm -w /app --no-deps composer bash -ci 'composer install'
composer-check:
docker-compose run --rm -w /app --no-deps composer bash -ci 'composer update --dry-run'
composer-update:
docker-compose run --rm -w /app --no-deps composer bash -ci 'composer update'
enter:
docker-compose exec webserver bash
build:
docker-compose build
up:
docker-compose up -d
db-create:
docker-compose exec webserver php bin/console doctrine:database:create
db-migrate:
docker-compose exec webserver php bin/console doctrine:migrations:migrate --no-interaction
db-drop:
docker-compose exec webserver php bin/console doctrine:database:drop --force --no-interaction
cache-clear:
docker-compose exec webserver php bin/console cache:clear
install: build up composer-install db-create cache-clear ui-build ui-install ui-dev db-migrate import-feed
stop:
docker-compose stop webserver
remove:
docker-compose down
destroy:
docker-compose down --rmi='all' -v
uninstall: db-drop stop destroy ui-purge composer-purge docker-prune
import-feed:
docker-compose exec webserver bin/console app:rss-feed-importer
phpstan:
docker-compose exec webserver ./vendor/bin/phpstan analyse
phpunit:
docker-compose exec webserver php ./vendor/bin/phpunit
test: phpstan phpunit
docker-prune:
docker system prune -a