diff --git a/README.md b/README.md index f8b90be..9e33a7d 100644 --- a/README.md +++ b/README.md @@ -200,6 +200,20 @@ DO NOT use directly docker or docker-compose to run this instance use make instead like ```make up``` ```makefile +#!/usr/bin/make + +SHELL = /bin/sh + +USER_UID := $(shell id -u) +USER_UNAME := $(shell id -un) +USER_GID := $(shell id -g) +USER_GNAME := $(shell id -gn) + +export USER_UID +export USER_UNAME +export USER_GID +export USER_GNAME + pull: docker-compose pull @@ -232,28 +246,28 @@ logs: maj_config: crd composer_install updb cim cr crd: - docker exec caravane-api-1 /bin/bash -c "drush cache-clear drush" + docker exec caravane-php-1 /bin/bash -c "drush cache-clear drush" cr: - docker exec caravane-api-1 /bin/bash -c "drush cr" + docker exec caravane-php-1 /bin/bash -c "drush cr" updb: - docker exec caravane-api-1 /bin/bash -c "drush updb -y" + docker exec caravane-php-1 /bin/bash -c "drush updb -y" cim: - docker exec caravane-api-1 /bin/bash -c "drush config-import -y" + docker exec caravane-php-1 /bin/bash -c "drush config-import -y" composer_install: - docker exec caravane-api-1 /bin/bash -c "composer install --no-dev" + docker exec caravane-php-1 /bin/bash -c "composer install --no-dev" down: docker-compose down -exec_api: - docker exec -it caravane-api-1 bash +exec_php: + docker exec -it caravane-php-1 bash -restart_api: - docker-compose restart api +restart_php: + docker-compose restart php exec_mysql: docker exec -it caravane-mysql-1 bash @@ -263,4 +277,5 @@ restart_nginx: dump_db: docker exec caravane-mysql-1 sh -c 'exec mysqldump -uroot -pcaravane caravane' > ./ressources/caravane-$(DATE_NOW)-local.sql + ```