readme
This commit is contained in:
parent
13e3577288
commit
435e6bc411
68
README.md
68
README.md
|
@ -26,7 +26,6 @@ git clone --recursive -o figli https://figureslibres.io/gitea/bachir/docker-cara
|
||||||
|
|
||||||
submodules :
|
submodules :
|
||||||
- https://figureslibres.io/gitea/bachir/drupal-caravane
|
- https://figureslibres.io/gitea/bachir/drupal-caravane
|
||||||
- https://figureslibres.io/gitea/bachir/nuxt-caravane
|
|
||||||
|
|
||||||
|
|
||||||
## touch log file
|
## touch log file
|
||||||
|
@ -37,7 +36,7 @@ touch log/nginx/caravane/error.log
|
||||||
|
|
||||||
### setup /sites/default/settings.php
|
### setup /sites/default/settings.php
|
||||||
|
|
||||||
```cp -r ressources/api/* api/src/web/sites/default/```
|
```cp -r ressources/api/* src/web/sites/default/```
|
||||||
|
|
||||||
### get the sites/default/salt.txt file (if you don't have it, you don't)
|
### get the sites/default/salt.txt file (if you don't have it, you don't)
|
||||||
|
|
||||||
|
@ -149,21 +148,18 @@ Be aware that a first up, since the db is empty, it will be populated with your
|
||||||
## Drupal Composer install
|
## Drupal Composer install
|
||||||
Only at first up, finish to install drupal composer dependencies
|
Only at first up, finish to install drupal composer dependencies
|
||||||
```
|
```
|
||||||
make exec_api
|
make exec_php
|
||||||
composer install
|
composer install
|
||||||
```
|
```
|
||||||
|
|
||||||
## Visualize
|
## Visualize
|
||||||
You can now visit :
|
You can now visit http://dev.caravane.fr on your browser
|
||||||
the app http://dev.caravane.fr
|
|
||||||
or the api http://dev.caravane.fr/api
|
|
||||||
on your browser
|
|
||||||
|
|
||||||
## Coding
|
## Coding
|
||||||
### drush
|
### drush
|
||||||
you can access to drush by loging into the php container
|
you can access to drush by loging into the php container
|
||||||
```
|
```
|
||||||
make exec_api
|
make exec_php
|
||||||
```
|
```
|
||||||
once inside the php container in /var/www/html you can use drush as usual
|
once inside the php container in /var/www/html you can use drush as usual
|
||||||
|
|
||||||
|
@ -174,11 +170,9 @@ once inside the php container in /var/www/html you can use drush as usual
|
||||||
git pull figli master
|
git pull figli master
|
||||||
# then update all submodules
|
# then update all submodules
|
||||||
git submodule update --recursive --checkout
|
git submodule update --recursive --checkout
|
||||||
# or only one
|
# or only
|
||||||
git submodule update --checkout app/
|
git submodule update --checkout src/
|
||||||
# or
|
make maj_config
|
||||||
git submodule update --checkout api/
|
|
||||||
make api_maj_config
|
|
||||||
```
|
```
|
||||||
|
|
||||||
## Updating manualy mysql db
|
## Updating manualy mysql db
|
||||||
|
@ -215,6 +209,15 @@ build:
|
||||||
buildnc:
|
buildnc:
|
||||||
docker-compose build --no-cache --build-arg USER_UID=$(USER_UID) --build-arg USER_UNAME=$(USER_UNAME) --build-arg USER_GID=$(USER_GID) --build-arg USER_GNAME=$(USER_GNAME)
|
docker-compose build --no-cache --build-arg USER_UID=$(USER_UID) --build-arg USER_UNAME=$(USER_UNAME) --build-arg USER_GID=$(USER_GID) --build-arg USER_GNAME=$(USER_GNAME)
|
||||||
|
|
||||||
|
buildncphp:
|
||||||
|
docker-compose build --no-cache --build-arg USER_UID=$(USER_UID) --build-arg USER_UNAME=$(USER_UNAME) --build-arg USER_GID=$(USER_GID) --build-arg USER_GNAME=$(USER_GNAME) php
|
||||||
|
|
||||||
|
buildnginx:
|
||||||
|
docker-compose build --build-arg USER_UID=$(USER_UID) --build-arg USER_UNAME=$(USER_UNAME) --build-arg USER_GID=$(USER_GID) --build-arg USER_GNAME=$(USER_GNAME) nginx
|
||||||
|
|
||||||
|
buildncnginx:
|
||||||
|
docker-compose build --no-cache --build-arg USER_UID=$(USER_UID) --build-arg USER_UNAME=$(USER_UNAME) --build-arg USER_GID=$(USER_GID) --build-arg USER_GNAME=$(USER_GNAME) nginx
|
||||||
|
|
||||||
downbuildup: down build up
|
downbuildup: down build up
|
||||||
|
|
||||||
up:
|
up:
|
||||||
|
@ -226,35 +229,38 @@ ps:
|
||||||
logs:
|
logs:
|
||||||
docker-compose logs -f
|
docker-compose logs -f
|
||||||
|
|
||||||
api_maj_config: api_crd api_composer_install api_updb api_cim api_cr
|
maj_config: crd composer_install updb cim cr
|
||||||
|
|
||||||
api_crd:
|
crd:
|
||||||
docker exec caravane_api_1 /bin/bash -c "drush cache-clear drush"
|
docker exec caravane-api-1 /bin/bash -c "drush cache-clear drush"
|
||||||
|
|
||||||
api_cr:
|
cr:
|
||||||
docker exec caravane_api_1 /bin/bash -c "drush cr"
|
docker exec caravane-api-1 /bin/bash -c "drush cr"
|
||||||
|
|
||||||
api_updb:
|
updb:
|
||||||
docker exec caravane_api_1 /bin/bash -c "drush updb -y"
|
docker exec caravane-api-1 /bin/bash -c "drush updb -y"
|
||||||
|
|
||||||
api_cim:
|
cim:
|
||||||
docker exec caravane_api_1 /bin/bash -c "drush config-import -y"
|
docker exec caravane-api-1 /bin/bash -c "drush config-import -y"
|
||||||
|
|
||||||
api_composer_install:
|
composer_install:
|
||||||
docker exec caravane_api_1 /bin/bash -c "composer install --no-dev"
|
docker exec caravane-api-1 /bin/bash -c "composer install --no-dev"
|
||||||
|
|
||||||
down:
|
down:
|
||||||
docker-compose down
|
docker-compose down
|
||||||
|
|
||||||
exec_api:
|
exec_api:
|
||||||
docker exec -it caravane_api_1 bash
|
docker exec -it caravane-api-1 bash
|
||||||
|
|
||||||
exec_app:
|
restart_api:
|
||||||
docker exec -it caravane_app_1 sh
|
docker-compose restart api
|
||||||
|
|
||||||
restart_app:
|
|
||||||
docker-compose restart app
|
|
||||||
|
|
||||||
exec_mysql:
|
exec_mysql:
|
||||||
docker exec -it caravane_mysql_1 bash
|
docker exec -it caravane-mysql-1 bash
|
||||||
|
|
||||||
|
restart_nginx:
|
||||||
|
docker-compose 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