-
-
Notifications
You must be signed in to change notification settings - Fork 1.1k
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
Dynamically set options, aliases #3063
Comments
|
Other options:
Also, regarding:
For this example, you can simply set the extra location invariantly in your drush.yml configuration file. Drush will not complain if the location does not exist. |
Documenting this would be nice. Maybe in example.drush.yml. |
Not yet tested, but it should be possible in a commandfile to call the AliasManager, get and change aliases, etc. |
Posted an example showing alias and general config alteration at #3115. I didn't try to alter |
I have tried to alter uri using the above technique and was unsuccessful. But I did learn that uri and any other drush config may be set via environment variable. see https://github.com/drush-ops/drush/blob/master/examples/example.drush.yml#L26-L35 |
Not sure what the best way is, we have people running drush on vagrant and others on docker, so the 'root' part in the alias differs from person to person. What's the recommended way ? |
I'm not sure of the best way either, so what we're doing is having an |
In Drush 8, I could conditionally set configuration options:
Now that Drush 9 uses drush.yml in place of drushrc.php, how can this be accomplished?
Similarly, how might one dynamically set aliases?
The text was updated successfully, but these errors were encountered: