-
Notifications
You must be signed in to change notification settings - Fork 2
/
Makefile
29 lines (23 loc) · 704 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
COMPOSER_RUN = docker-compose run --rm composer
APP_RUN = docker-compose run --rm app
all: composer-install setup serve
.PHONY: all
setup:
$(APP_RUN) bin/console doctrine:schema:update --force
$(APP_RUN) bin/console enqueue:setup-broker
$(APP_RUN) bin/console doctrine:fixtures:load -q
.PHONY: setup
serve:
docker-compose run --rm -p 8090:8090 app bin/console server:run *:8090
.PHONY: serve
consume:
$(APP_RUN) bin/console enqueue:transport:consume enqueue.simple_bus.events_processor \
--queue=domain_events \
--message-limit=25
.PHONY: consume
composer-install:
$(COMPOSER_RUN) install
.PHONY: composer-install
composer-update:
$(COMPOSER_RUN) update
.PHONY: composer-update