-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
34 lines (26 loc) · 829 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
SHELL := /bin/bash
default: start ;
CURRENT_UID := $(shell id -u)
CURRENT_GID := $(shell id -g)
build:
## Download and build containers
docker compose up --build -d web
## Install composer dependencies
docker compose run --rm php composer install
## Install Yarn dependencies
docker compose run --rm nodejs yarn install
## Compile JS and CSS dependencies
make assets-dev
start: ## Start all required containers
docker compose up -d web
restart: ## Restart all running containers
make stop
make start
stop: ## Stop all running containers and delete orphans
docker compose down --remove-orphans
assets-dev:
docker compose run --rm nodejs yarn dev
assets-watch: ## Run assets compiler in watching mode
docker compose run --rm nodejs yarn watch
cache-clear:
docker compose run --rm php bin/console cache:clear