craft-async-queue icon indicating copy to clipboard operation
craft-async-queue copied to clipboard

Command Line showing incorrect path

Open iamtompickering opened this issue 1 year ago • 3 comments

For some strange reason, the path to the root directory is incorrect in the Command Line of your plugins settings.

Is there any way to override this like you can with the PHP_BINARY .env var?

iamtompickering avatar Jan 17 '24 16:01 iamtompickering

Yes, it's documented: https://github.com/ostark/craft-async-queue?tab=readme-ov-file#configuration-optional

ostark avatar Jan 24 '24 00:01 ostark

@ostark thanks for this but I don't think the part I am referring to is documented.

I can see that you can override the PHP_BINARY e.g. usr/local/php81/bin/php

But what about the path that comes after it e.g. /home/customer/www/website.com/craft

For some reason, that part of the command is incorrect for my site, so it would be good to be able to override that part of the command as well. Let me know if I am missing something here and if it is actually possible?

iamtompickering avatar Jan 24 '24 15:01 iamtompickering

Ah, I see. There is an Event that allows modification of the whole command from outside. Since this problem is unique to this website/environment only, I'd do a hacky string replace there.

https://github.com/ostark/craft-async-queue/tree/master?tab=readme-ov-file#events

You can put the event listener in your config/app.php.

ostark avatar Jan 25 '24 18:01 ostark