Skip to content

Site not recognized in advanced setup #1965

@geek-merlin

Description

@geek-merlin

How to reproduce (with today's 8.0.x-dev):

  • Have a drupal 7.x multisite containing a site named "foo", publicly accessible as http://www.foo.com
    (...and some "default" site)
  • $sites.php maps www.foo.com to foo
  • some modules need the correct $SERVER['host'] also in drush calls, so sites/foo/drushrc.php contains uri = www.foo.com and sites/default/drushrc.php contains uri = www.default.com

Now do
drush @sites sa @self
which internally does
drush --uri=foo sa @self

Expected: uri=http://www.foo.com
Experienced: uri=default

(At least i think these are the relevant things to reproduce...)

The real-world trouple is a multisite, that caches links with wrong base_url in drush cc all.

Metadata

Metadata

Assignees

No one assigned

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions