Open
Description
Problem/Motivation
We are having problem understanding how should be correctly installed the console in an existing drupal multisite platform of a dev server.
Some clarifications would be appreciated. I would then be happy to explicit further the documentation
steps:
- from an existing drupal 8 platform
- I have been told previously the installation must be done for every sites of the platform
[docs] doc on how to install drupal console for multisites? #3532 (comment) - the install have been done first from the site folder : path/to/data-platforms/platforms/drupal8root/sites/sitenumber1/composer require drupal/console --prefer-dist --optimize-autoloader
- running a drupal command output [ERROR] Drupal Console is not installed at:
/data-platforms/platforms/drupal8root - the install have been done then from the drupal root folder (containing all sites ) :path/to/data-platforms/platforms/drupal8root/composer require drupal/console --prefer-dist --optimize-autoloader
- drupal list output
[ERROR] The specified database connection is not defined: default
[WARNING] In order to list all of the available commands you should install
drupal first.
My (naïve ) questions are:
- from which folder shoud be run the composer command for an existing multisite platform? the drupal root folder ? or all sites folder from /sites
- in my case i dont install the console then use it to install a drupal instance. I have got installed drupal sites and i want to be able to use drupal console commands. Why am i asked to install drupal first?
- what is missing in the installation ?
the doc says :"The first task you should do after installing Drupal Console is to execute the init command. Executing this command will copy the project configurations files to your local computer."
Is this required when the local computer is where the project "drupal/console" have already been installed to, aka the dev server containing all drupal sites?
Details to include:
- Drupal 8.4
- Console version 1.0.2
- Console Launcher version 1.0.2
Thanks in advance for your precisions