-
Notifications
You must be signed in to change notification settings - Fork 8
/
Makefile
38 lines (28 loc) · 793 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
.PHONY: up down bash-web bash-db build help restart migrate seed
up:
docker-compose up -d
down:
docker-compose down -v
bash-web:
docker-compose exec -it web bash
bash-db:
docker-compose exec -it db bash
build:
docker-compose build web
restart: down up
test:
docker-compose exec web bash -c "./vendor/bin/phpunit"
migrate:
docker-compose exec -it web bash -c "php spark migrate"
seed:
docker-compose exec -it web bash -c "php spark db:seed Main"
help:
@echo "Available commands:"
@echo ""
@echo "up Inicia os containers"
@echo "down Para os containers"
@echo "bash-web Acessa o bash do container web"
@echo "bash-db Acessa o bash do container db"
@echo "build Cria a imagem do container web"
@echo "restart Reinicia os containers"
@echo "help Exibe esta ajuda"