|
@@ -1,8 +1,8 @@
|
|
|
|
|
|
-#### instal docker and drupal
|
|
|
|
|
|
+# instal docker and drupal
|
|
|
|
|
|
|
|
|
|
-## Clone this repos
|
|
|
|
|
|
+### Clone this repos
|
|
|
|
|
|
clone a older docker of a similar project
|
|
clone a older docker of a similar project
|
|
|
|
|
|
@@ -13,7 +13,7 @@ git clone -o gogs gogs@figureslibres.io:bachir/docker-popsu.git
|
|
or download docker folder from gogs
|
|
or download docker folder from gogs
|
|
|
|
|
|
|
|
|
|
-## Change name and old project occurences
|
|
|
|
|
|
+### Change name and old project occurences
|
|
|
|
|
|
open folder in Vscodium and :
|
|
open folder in Vscodium and :
|
|
|
|
|
|
@@ -32,7 +32,7 @@ Makefile
|
|
docker > nginx > default.conf
|
|
docker > nginx > default.conf
|
|
|
|
|
|
|
|
|
|
-## xdebug
|
|
|
|
|
|
+### xdebug
|
|
copy ```ressources/xdebug.ini.exemple``` to ```ressources/xdebug.ini```
|
|
copy ```ressources/xdebug.ini.exemple``` to ```ressources/xdebug.ini```
|
|
|
|
|
|
|
|
|
|
@@ -56,7 +56,7 @@ git push -u origin master
|
|
|
|
|
|
```
|
|
```
|
|
|
|
|
|
-## Hosts and reverse proxy
|
|
|
|
|
|
+### Hosts and reverse proxy
|
|
|
|
|
|
add to your /etc/hosts :
|
|
add to your /etc/hosts :
|
|
```
|
|
```
|
|
@@ -115,27 +115,27 @@ sudo ln -s /etc/nginx/sites-available/dev.training.fr.conf /etc/nginx/sites-enab
|
|
sudo systemctl restart nginx
|
|
sudo systemctl restart nginx
|
|
```
|
|
```
|
|
|
|
|
|
-### build docker
|
|
|
|
|
|
+## build docker
|
|
```
|
|
```
|
|
make build
|
|
make build
|
|
make up
|
|
make up
|
|
make ps
|
|
make ps
|
|
```
|
|
```
|
|
|
|
|
|
-### instal drupal with composer
|
|
|
|
|
|
+## instal drupal with composer
|
|
|
|
|
|
```
|
|
```
|
|
cd public_html
|
|
cd public_html
|
|
composer create-project drupal/recommended-project:^9.5 .
|
|
composer create-project drupal/recommended-project:^9.5 .
|
|
```
|
|
```
|
|
|
|
|
|
-## clone this profile into profiles folder
|
|
|
|
|
|
+### clone this profile into profiles folder
|
|
```
|
|
```
|
|
cd profiles
|
|
cd profiles
|
|
git clone -o figli https://figureslibres.io/gogs/bachir/drupal-starterkit-profile.git
|
|
git clone -o figli https://figureslibres.io/gogs/bachir/drupal-starterkit-profile.git
|
|
```
|
|
```
|
|
|
|
|
|
-## include the profile's composer file to the main drupal's composer file
|
|
|
|
|
|
+### include the profile's composer file to the main drupal's composer file
|
|
|
|
|
|
install composer-merge-plugin
|
|
install composer-merge-plugin
|
|
```
|
|
```
|
|
@@ -157,14 +157,14 @@ then in main drupal's composer.js file add this in extra
|
|
}
|
|
}
|
|
```
|
|
```
|
|
|
|
|
|
-## install the profile's merged dependencies with composer
|
|
|
|
|
|
+### install the profile's merged dependencies with composer
|
|
|
|
|
|
cd ../
|
|
cd ../
|
|
composer update
|
|
composer update
|
|
|
|
|
|
|
|
|
|
|
|
|
|
-### sites/default setup
|
|
|
|
|
|
+## sites/default setup
|
|
|
|
|
|
```
|
|
```
|
|
mkdir -p web/sites/default/files
|
|
mkdir -p web/sites/default/files
|
|
@@ -183,7 +183,7 @@ chmod g+r web/sites/default/settings.php
|
|
```
|
|
```
|
|
exit container php as root ```ctrl + D```
|
|
exit container php as root ```ctrl + D```
|
|
|
|
|
|
-### install database with install drupal on navigator
|
|
|
|
|
|
+## install database with install drupal on navigator
|
|
|
|
|
|
choose profile figli starter kit
|
|
choose profile figli starter kit
|
|
|
|
|
|
@@ -195,7 +195,7 @@ hosts : mysql
|
|
in dump databse there will be files but also modules config
|
|
in dump databse there will be files but also modules config
|
|
|
|
|
|
|
|
|
|
-### git the drupal (src folder)
|
|
|
|
|
|
+## git the drupal (src folder)
|
|
|
|
|
|
```
|
|
```
|
|
git init
|
|
git init
|
|
@@ -283,13 +283,13 @@ git commit -m "added drupal submodule"
|
|
git push origin master
|
|
git push origin master
|
|
```
|
|
```
|
|
|
|
|
|
-### check drush
|
|
|
|
|
|
+## check drush
|
|
```
|
|
```
|
|
drush st
|
|
drush st
|
|
drush cr
|
|
drush cr
|
|
```
|
|
```
|
|
|
|
|
|
-### check settings files
|
|
|
|
|
|
+## check settings files
|
|
|
|
|
|
create file services.yml in src/web/sites/default (can copy from previous site)
|
|
create file services.yml in src/web/sites/default (can copy from previous site)
|
|
|
|
|