Drupal-console: Removing a global Drupal Console install and replace it with a on a per site basis install

Created on 16 Jan 2018  路  5Comments  路  Source: hechoendrupal/drupal-console

So far I had a global install of Drupal Console in '/usr/local/bin' but it got to my attention today over at the DrupalVM issue tracker that the recommended best practice is to install Drupal Composer on a per project basis with composer. Now I wanted to remove the global install of Drupal Console from my computer. 'rm /usr/local/bin/drupal' is the first step but i wonder if it is reasonable also to remove the '~/.console' folder to get rid of the old settings. And are there any other files to remove beforehand? Haven't found anything in that regard over in the documentation (maybe i've read the particular part over, in that case i am sorry). Best regards Ralf

docs

Most helpful comment

Ok, encontr茅 la forma, ya que no tengo el sitio default con su achivo settings pues fallaba.

Encontr茅 en la documentaci贸n la forma de usarlo.

Use este formato y funciona todo OK:

drupal --uri=http://drupal8.multi.dev cr all
drupal --uri=drupal8.multi.dev cr all 

All 5 comments

Hi @rpkoller

The /usr/local/bin/drupal is not the global installation is the Launcher.

More info about the installation instructions
Per site https://docs.drupalconsole.com/en/getting/composer.html
Launcher https://docs.drupalconsole.com/en/getting/launcher.html

More info about per-site and launcher and why you may need the Launcher at https://docs.drupalconsole.com/en/getting/project.html

If you installed global using composer then it will be at ~/.composer/vendor

To remove global installation you should use composer

composer global remove drupal/console

Jes煤s antes que nada excelente herramienta, ahora si mi consulta.

Sigo sin entender como instalar por sitio.
Te resumo a ver si estoy entendiendo el procedimiento:

1.-El launcher es necesario que est茅 en /usr/local/bin/drupal
2.- Necesito instalar por cada sitio Drupal de esta manera :
composer require drupal/console:~1.0 \ --prefer-dist \ --optimize-autoloader

Eso ser铆a todo o me falta alg煤n paso m谩s?

Mi duda es, si no estoy en el root (en donde est谩n los vendors principales del sitio drupal) , sino por ejemplo en la carpeta sites y ejecuto drupal generate:module funcionar谩? Es decir va a generar el m贸dulo en la ruta correcta?

@Gonzalo2683 exacto el Launcher se encargara de detectar que esta dentro de un sitio de drupal y generara el codigo en el lugar indicado

Una consulta m谩s, es posible usar drupal console con un sitio drupal multisite?
Estoy corriendo solamente el comando drupal y me aparece este mensaje:
[ERROR] The specified database connection is not defined: default

Probe corren estando dentro de la carpeta de un subsite y el mismo error aparece, cual es la forma de usar drupal console en un sitio multi site.

Gracias

Ok, encontr茅 la forma, ya que no tengo el sitio default con su achivo settings pues fallaba.

Encontr茅 en la documentaci贸n la forma de usarlo.

Use este formato y funciona todo OK:

drupal --uri=http://drupal8.multi.dev cr all
drupal --uri=drupal8.multi.dev cr all 
Was this page helpful?
0 / 5 - 0 ratings