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

Update path to /path/to/vendor/bin under Install > Execution #5826

Merged
merged 1 commit into from Dec 1, 2023
Merged

Update path to /path/to/vendor/bin under Install > Execution #5826

merged 1 commit into from Dec 1, 2023

Conversation

gitressa
Copy link
Contributor

@gitressa gitressa commented Dec 1, 2023

Describe the bug

The current documentation is using a wrong path for the single Drupal codebase tip.

  1. Execution. Change your working directory to your project root, and call Drush via vendor/bin/drush. To make this easier, append ./vendor/bin to the end of your $PATH; this allows you to call Drush via drush once your working directory is set. If you only have only one Drupal codebase on your system, you may put /path/to/vendor/bin/drush in your $PATH; if you do this, then it is not necessary to set your working directory before calling Drush.

From https://www.drush.org/latest/install/

To Reproduce

  1. Add /path/to/vendor/bin/drush to $PATH
  2. Run drush from any folder and fail

Expected behavior

Allow running drush from any folder.

Workaround

Add /path/to/vendor/bin to $PATH.

System Configuration

Q A
Drush version? 12.x
Drupal version? 10.x
PHP version 8.x
OS? Linux

@gitressa gitressa changed the title Update Execute path to /path/to/vendor/bin under Install > Execution Update path to /path/to/vendor/bin under Install > Execution Dec 1, 2023
@weitzman weitzman merged commit 8d2a9e2 into drush-ops:12.x Dec 1, 2023
2 checks passed
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

Successfully merging this pull request may close these issues.

None yet

2 participants