-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathMakefile
29 lines (23 loc) · 799 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
.PHONY: help start build install tail down
help:
@echo ""
@echo "-- Makefile Available Commands --"
@echo ""
@echo " make start: - build and run containers and install dependencies"
@echo " make build: - build Wordpress and MySQL containers"
@echo " make install: - Install composer dependecies"
@echo " make tail: - follow logs from Wordpress container in terminal"
@echo " make down: - remove all containers and volumes"
@echo ""
@echo "---------------------------------"
@echo ""
start:
./scripts/start.sh
build:
docker-compose up -d --build
install:
docker exec -it $$(docker ps -aqf "name=perception_wp") /bin/bash -c "cd wp-content/plugins/perception && composer install --no-scripts"
tail:
docker logs -f perception_wp
down:
docker-compose down