-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
26 lines (22 loc) · 784 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
.PHONY: init
init: ## create .env.local file from .env
cd app && \
cp -u -p .env .env.local
.PHONY: install
install: ## install
docker exec -it php symfony composer install
#docker exec -it php symfony console doctrine:database:create
docker exec -it php symfony console doctrine:migrations:migrate -n
docker exec -it php symfony console doctrine:fixtures:load -n
.PHONY: reset-db
reset-db: ## reset database
docker exec -it php symfony console doctrine:database:drop --force
docker exec -it php symfony console doctrine:database:create
docker exec -it php symfony console doctrine:migrations:migrate -n
docker exec -it php symfony console doctrine:fixtures:load -n
.PHONY: start
start: ## start
docker compose up -d --build
.PHONY: log
log: ## log
symfony server:log