From d03c4948dcd0311877e857472690ad2a8a4eeaa3 Mon Sep 17 00:00:00 2001 From: gcolpart Date: Tue, 16 Jan 2024 23:15:42 +0100 Subject: [PATCH] ajout infos drush --- HowtoDrupal.md | 23 +++++++++++++++++++---- 1 file changed, 19 insertions(+), 4 deletions(-) diff --git a/HowtoDrupal.md b/HowtoDrupal.md index 82d8f1aa..65a36033 100644 --- a/HowtoDrupal.md +++ b/HowtoDrupal.md @@ -89,12 +89,13 @@ $ crontab -l Pour installer la dernière version : ~~~ +$ cd $ROOT $ composer require drush/drush $ composer require symfony/http-kernel $ composer show drush/drush | grep ^version versions : * 12.4.3 -$ php drupal/vendor/bin/drush version +$ php ./vendor/bin/drush version Drush version : 12.4.3.0 ~~~ @@ -103,7 +104,7 @@ Pour installer une ancienne version : ~~~ $ composer global require drush/drush:8.4.8 -$ ./.composer/vendor/bin/drush version +$ php ./.composer/vendor/bin/drush version Drush Version : 8.4.8 ~~~ @@ -112,7 +113,7 @@ ou ~~~ $ composer require drush/drush:8.4.8 -$ ./vendor/bin/drush version +$ php ./vendor/bin/drush version Drush Version : 8.4.8 ~~~ @@ -123,13 +124,27 @@ Au sein d'un site Drupal, on peut vérifier/collecter différentes informations ~~~ $ cd $ROOT + $ drush sql-connect + $ drush status +Drupal version : 10.2.1 +Site URI : http://default +PHP binary : /usr/bin/php8.2 +PHP config : /etc/php/8.2/cli/php.ini +PHP OS : Linux +PHP version : 8.2.7 +Drush script : /home/foo/www/vendor/bin/drush +Drush version : 12.4.3.0 +Drush temp : /tmp +Drush configs : /home/foo/www/vendor/drush/drush/drush.yml +Drupal root : /home/foo/www/web +Site path : sites/default ~~~ ### Configuration derrière un reverse-proxy -Dans la configuration de drupal, des directives sont à activer pour la prise en compte des headers HTTP X-Forwarded-For). +Dans la configuration de Drupal, des directives sont à activer pour la prise en compte des headers HTTP X-Forwarded-For). ~~~php $settings['reverse_proxy'] = TRUE;