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

Fix drush setup #410

Open
acbramley opened this issue Jul 11, 2024 · 0 comments
Open

Fix drush setup #410

acbramley opened this issue Jul 11, 2024 · 0 comments
Labels
Added to backlog This issue has been added to the internal backlog for prioritisation.

Comments

@acbramley
Copy link

I've been trying to debug some issues I'm having with running cron on the platform. I have a custom bin-dir to install composer binaries in /app/bin/ instead of /app/vendor/bin because that is what we're used to. However, this seems incompatible with the platform.

Firstly #376 setup a hardcoded alias to /app/vendor/bin/drush but there are a lot more problems:

There's a global drush script installed in /usr/local/bin/drush which is an ancient version (8.4.12)

[canceraus3]master@cli-drupal:/app$ which drush
/usr/local/bin/drush
[canceraus3]master@cli-drupal:/app$ /usr/local/bin/drush --version
Drush Launcher Version: 0.10.2
 Drush Version   :  8.4.12 

This seems to be being used at some points (ignoring the alias).

But the alias is used when running just drush

[canceraus3]master@cli-drupal:/app$ drush --version
bash: /app/vendor/bin/drush: No such file or directory

This seems to be causing issues with the custom cron job wrapper https://www.govcms.support/support/tickets/26269

It should be possible to set a custom bin-dir on this platform.

We should also remove the /usr/local/bin/drush file.

@steveworley steveworley added the Added to backlog This issue has been added to the internal backlog for prioritisation. label Aug 29, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Added to backlog This issue has been added to the internal backlog for prioritisation.
Projects
None yet
Development

No branches or pull requests

2 participants