readme, src
This commit is contained in:
parent
c11171ac17
commit
415b9e7ad0
33
README.md
33
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
|
||||
|
||||
```
|
||||
|
|
Loading…
Reference in New Issue