Hi all,
I've got a Lumen project and I'm trying to run the queue via supervisord, but I'm getting an error in the log files:
Could not open input file: artisan
I've checked that the artisan file is executable.
I have the same error if I try to run the queue from anywhere but the Laravel root directory:
This works:
[me@server project_dir]$ php artisan queue:listen
This gives me the 'Could not open' error:
[me@server ~]$ php /home/me/project_dir/artisan queue:listen
Some commands work from outside the project directory, others don't. Something is obviously not being initialized properly, because I've found any calls to config() are returning null. It's hard to debug though because Log::debug() calls aren't working either (no error, just no log output).
The env variables appear to be loading. If I add an echo to the artisan file :
$app = require __DIR__.'/bootstrap/app.php';
echo getenv('QUEUE_DRIVER');
I get database, which is what I have in my .env file.
Anybody have an idea where to look to solve this?
Thanks.