readme, src

This commit is contained in:
Bachir Soussi Chiadmi 2024-07-15 12:28:08 +02:00
parent c11171ac17
commit 415b9e7ad0
1 changed files with 24 additions and 9 deletions

View File

@ -200,6 +200,20 @@ DO NOT use directly docker or docker-compose to run this instance
use make instead like ```make up``` use make instead like ```make up```
```makefile ```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: pull:
docker-compose pull docker-compose pull
@ -232,28 +246,28 @@ logs:
maj_config: crd composer_install updb cim cr maj_config: crd composer_install updb cim cr
crd: 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: cr:
docker exec caravane-api-1 /bin/bash -c "drush cr" docker exec caravane-php-1 /bin/bash -c "drush cr"
updb: updb:
docker exec caravane-api-1 /bin/bash -c "drush updb -y" docker exec caravane-php-1 /bin/bash -c "drush updb -y"
cim: 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: 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: down:
docker-compose down docker-compose down
exec_api: exec_php:
docker exec -it caravane-api-1 bash docker exec -it caravane-php-1 bash
restart_api: restart_php:
docker-compose restart api docker-compose restart php
exec_mysql: exec_mysql:
docker exec -it caravane-mysql-1 bash docker exec -it caravane-mysql-1 bash
@ -263,4 +277,5 @@ restart_nginx:
dump_db: dump_db:
docker exec caravane-mysql-1 sh -c 'exec mysqldump -uroot -pcaravane caravane' > ./ressources/caravane-$(DATE_NOW)-local.sql docker exec caravane-mysql-1 sh -c 'exec mysqldump -uroot -pcaravane caravane' > ./ressources/caravane-$(DATE_NOW)-local.sql
``` ```