我的帖子与帖子完全相同:
Laravel 4 Queue - [InvalidArgumentException] There are no commands defined in the "queue" namespace .
Centos 6.5决赛 . Laravel 4.2,Supervisor 3.0和Python 2.6.6
应用程序的配置:
[program:lvcartsey]
command=php artisan queue:listen --env="local"
stdout_logfile=/home/mike/web/app/storage/logs/myqueue_supervisord.log
redirect_stderr=true
directory=/home/mike/web
;autorestart=true
;autostart=true
user=mike
一旦我开始主管,我在myqueue_supervisord.log中得到这个:
[InvalidArgumentException]
There are no commands defined in the "queue" namespace.
当从命令行运行php artisan queue:listen按预期工作 .
我搜索了谷歌,但我没有找到有关此问题的有用信息 . 任何人都知道这可能是什么原因?如何从命令行运行工匠与运行它的主管不同?
1 回答
见this answer . 它也可能是你的一个解决方案 .
你想做的就是改变
至