I’m using Drupal 9 and Drush 11. I have two hosts, one for local testing (www.en9-local.pglatz.com
) and a remote production server (www.electronovelty.com
).
When I run drush status from either of these hosts, I see Site path is set to sites/default. How do I tell drush which settings.php to use? I tried using the uri argument on the command line; it does find the proper site path, but is also giving an error:
% drush status --uri=www.electronovelty.com sh: 1: ^www.en9-local.pglatz.com$: not found sh: 1: ^www.electronovelty.com$: not found ...
Ideally, it wouldn’t involve editing files on the remote host, but set with a cmd line argument, env variable, or other setting outside the Drupal installation.