-
-
Notifications
You must be signed in to change notification settings - Fork 45
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
Add Drush Launcher to the project to better support site installed Drush 9 #38
Comments
Available in the edge images and will be release in |
@lmakarov Just read now how would I add this flag ? At the moment I am just using following to get access to legacy Drush Is there any better way ? |
In your Docksal project's
TIP: The Docksal project files |
Tacos to you my friend. You're a champion. |
@amjad-wp, @frederickjh you normally don't need to do anything, as long as you are on the latest Docksal version using the default stack. If you have a custom stack defined in It is possible, that even with the default stack you have image versions pinned in |
@lmakarov I am not using this myself, as I haven't had a need to, it just works as you say. I was just explaining how to set a environmental variable in a Docksal project container. |
@lmakarov I have switched to dev version few days back. For debugging issue docksal/docksal#800 |
Currently one must be in the Drupal Webroot to use Drush. With projects moving to Drush 9 which is only supported installed per project adding the Drush Launcher makes sense.
Adding the Drush Launcher would allow running drush commands anywhere in a composer managed project and would automatically use the version of Drush installed in the project.
To allow Drush Launcher to fallback for projects that do not have Drush as part of the project (Drupal 7) the environmental variable
DRUSH_LAUNCHER_FALLBACK
should be set to the path to the globally installed Drush 8. The path to the Drush Launcher should be added to the $PATH so that it comes before any otherdrush
command files.See the command in this Drush Launcher issue for a command that will install the most recent version without having to update it each time a new version comes out.
The text was updated successfully, but these errors were encountered: