-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathMakefile
More file actions
32 lines (22 loc) · 828 Bytes
/
Copy pathMakefile
File metadata and controls
32 lines (22 loc) · 828 Bytes
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
include .env
CURRENT_USER=$(shell id -u):$(shell id -g)
build:
docker-compose -f .docker/docker-compose.yml build
up:
docker-compose -f .docker/docker-compose.yml up -d
down:
docker-compose -f .docker/docker-compose.yml down
install:
docker-compose -f .docker/docker-compose.yml exec php-fpm symfony composer install
migrate:
docker-compose -f .docker/docker-compose.yml exec php-fpm symfony console --no-interaction doctrine:migration:migrate
rm-db:
sudo rm -rf .docker/storage/postgres
bash-php:
docker-compose -f .docker/docker-compose.yml exec --user $(CURRENT_USER) php-fpm bash
root-bash-php:
docker-compose -f .docker/docker-compose.yml exec php-fpm bash
start: build up install migrate
@echo "Application has been launched"
test:
docker-compose -f .docker/docker-compose.yml exec php-fpm bin/phpunit