hechoendrupal / drupal-console

The Drupal CLI. A tool to generate boilerplate code, interact with and debug Drupal.
http://drupalconsole.com
GNU General Public License v2.0
939 stars 558 forks source link

Drupal Console RC5 doesn't work on multisite configuration when sites/default is not used #2783

Open bpresles opened 8 years ago

bpresles commented 8 years ago

I've noticed that when used on mutlisite configuration without site installed on sites/default, Drupal Console RC5 doesn't work at all.

Indeed, even the "drupal multisite:debug" command doesn't work and report that Drupal is not installed, while on Beta 5 (last previous I used) it was working just fine. Also on beta 5 not having a Drupal installed for sites/default wasn't an issue and specifying the --uri= parameter was enough for Drupal Console to find the Drupal installation of the specified site URI.

Also even if I use the sites/default and install a Drupal on it, when I use "drupal list --uri=[other_site_uri]" on a non installed site, it does list all the commands even though the site specified is not installed. In that case it should report that Drupal should be installed first for the specified multisite site.

mickaelperrin commented 8 years ago

Can confirm the issue, and related to #2002.

It looks like the support for uri has been dropped ? Can someone confirm this ?

mickaelperrin commented 8 years ago

@bpresles just submitted a PR that should resolve the issue. #2850

PatrickBauer commented 8 years ago

@mickaelperrin Your PR works for the --uri, but the multisite:debug command still doesn't work.

Sutharsan commented 7 years ago

This issue was confirmed three days ago during a long debug session with @jmolivas in the (current) RC25 release. Without a sites/default/settings.php does not work on a single nor a multi-site. A complete sites/sites.php is present in both cases.