Skip to content

Conversation

@tyler36
Copy link
Collaborator

@tyler36 tyler36 commented Oct 31, 2023

This PR adds a note regrading DDEV_PHP_VERSION and Drupal.

A recent discussion on Slack highlighted issues with Drush only listing core commands, and not contrib, custom commands.
See https://drupal.slack.com/archives/C5TQRQZRR/p1698712445949379

@tyler36 tyler36 force-pushed the 20231031_doc_old_drupal branch from f6a4b56 to fef1d78 Compare October 31, 2023 04:36
@johnpitcairn
Copy link

This is when trying to run drush commands from ddev/ddev-cron. I need to include DDEV_PHP_VERSION in the cron line to have access to non-drush-core commands.

In the ddev shell, drush list does have access to all drush commands.

@tyler36
Copy link
Collaborator Author

tyler36 commented Oct 31, 2023

Cron executes in /bin/sh not /usr/bin/bash, so it doesn't inherit "normal" environmental variables that are usually set by "normal" shells (eg. .bashrc ).

Thanks @johnpitcairn for tracking down the culprit!

@tyler36 tyler36 merged commit 3949b2b into ddev:main Nov 7, 2023
@tyler36 tyler36 deleted the 20231031_doc_old_drupal branch November 7, 2023 02:22
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.

2 participants