-
Notifications
You must be signed in to change notification settings - Fork 0
/
Makefile
24 lines (20 loc) · 1.12 KB
/
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
help:
@grep -E '^[a-zA-Z_-]+:.*?## .*$$' $(MAKEFILE_LIST) | sort | awk 'BEGIN {FS = ":.*?## "}; {printf "\033[36m%-30s\033[0m %s\n", $$1, $$2}'
bash: ## [host] Ouvre un bash dans le conteneur web (en tant que root)
docker compose exec web bash
permissions-dev: ## [host] Configure les permissions de dev
sudo setfacl -R -m u:$(USER):rwX ./
sudo setfacl -dR -m u:$(USER):rwX ./
install_prod: ## [host] Installe les dépendances
docker-compose exec web composer install
docker-compose exec web yarn install
docker-compose exec web yarn encore prod
docker-compose exec web php bin/console doctrine:migrations:migrate --no-interaction
docker-compose exec web supervisorctl restart php-fpm
sudo chown -R www-data:www-data ./var
fixtures: ## [host] Charge les fixtures
# drop db
docker-compose exec web php bin/console doctrine:database:drop --env=test --if-exists --force
docker-compose exec web php bin/console doctrine:database:create --env=test
docker-compose exec web php bin/console doctrine:migration:migrate --env=test --no-interaction
docker-compose exec web php bin/console doctrine:fixtures:load --env=test --no-interaction