Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Site-specific drush.yml file not loaded #3277

Closed
grasmash opened this issue Dec 28, 2017 · 5 comments
Closed

Site-specific drush.yml file not loaded #3277

grasmash opened this issue Dec 28, 2017 · 5 comments

Comments

@grasmash
Copy link
Contributor

Drush does not appear to load docroot/sites/default/drush.yml, although the documentation indicates that this should work.

Adding the following to drush/drush.yml has no effect:

drush:
  paths:
    config:
      - ../docroot/sites/default/drush.yml

Executing drush status --config=docroot/sites/default/drush.yml also does not load it.

@grasmash
Copy link
Contributor Author

grasmash commented Dec 28, 2017

This may be 2 issues.

  1. Site-specific drush.yml file not loaded automatically.
  2. Custom drush.yml file is not loaded even when explicitly defined in drush.paths.config.

grasmash added a commit to grasmash/drush that referenced this issue Dec 29, 2017
grasmash added a commit to grasmash/drush that referenced this issue Dec 29, 2017
@grasmash grasmash changed the title Site-specific drush.yml file not loaded, even when explicitly defined Site-specific drush.yml file not loaded Dec 29, 2017
@grasmash
Copy link
Contributor Author

Opened #3279 to address the second issue. Changed scope of this issue to only "Site-specific drush.yml file not loaded".

@hansfn
Copy link
Contributor

hansfn commented Feb 12, 2018

I can confirm that of Drush 9.1.0 this issue is still present. If I create sites/default/drush.yml containing

options:
  uri: 'http://nonexisting.domain'

it has no effect for example when running drush status. If I move the file to vendor/drush/drush/drush.yml or ~/.drush/drush.yml it has the expected effect.

@grasmash
Copy link
Contributor Author

This PR would address the issue, but I have no plans to continue work on it:
#3278

@weitzman
Copy link
Member

weitzman commented Apr 2, 2018

The way to set URI early enough for this to work is to set the DRUSH_OPTIONS_URI env variable. See #3278 (comment).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants