jigarius / drall

A tool to run drush commands on multi-site Drupal installations.
GNU General Public License v3.0
33 stars 4 forks source link

Run drush commands with --uri or with @alias #5

Closed jigarius closed 2 years ago

jigarius commented 2 years ago

Requirements

All sites in a multi-site don't always have site aliases. Many projects rely on drush's --uri option to run the command on the correct site. Thus, we need to allow users to choose whether they want to use the URI or Drush aliases.

Todo

jigarius commented 2 years ago

Though the feature works, a deeper thought and experimentation might be needed to determine whether it is safe to use the site's subdirectory name with --uri or if it is safer/better to use the site's hostname instead, i.e. keys of the $site array. Maybe a 3rd wildcard, @@host could be used?