-
Notifications
You must be signed in to change notification settings - Fork 1
/
Makefile
39 lines (29 loc) · 935 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
36
37
38
39
.PHONY: ALL
all: build install
.PHONY: build
build:
@docker-compose build
.PHONY: install
install: start deps
.PHONY: deps
deps: composer/install yarn/install
.PHONY: start
start:
@docker-compose up -d
.PHONY: stop
stop:
@docker-compose stop
.PHONY: clean
clean:
composer/install:
@docker-compose exec --user $(id -u):$(id -g) web composer install
yarn/install:
@docker-compose exec --user $(id -u):$(id -g) web yarn install
database:
@docker-compose exec --user $(id -u):$(id -g) web php bin/console doctrine:database:drop --force
@docker-compose exec --user $(id -u):$(id -g) web php bin/console doctrine:database:create
@docker exec -i celsius3_mysql sh -c 'exec mysql -ucelsius3_usr -pcelsius3_pass celsius3' < .docker/mysql/celsius3.sql
.PHONY: encore
encore:
@docker-compose exec --user $(id -u):$(id -g) web php bin/console assets:install
@docker-compose exec --user $(id -u):$(id -g) web yarn run encore dev