Cakephp3 Shell类用于"队列"无法找到

时间:2016-03-10 16:57:03

标签: shell cakephp cakephp-3.0

你好,在cakephp3上有一个shell,在我的笔记本电脑上运行良好,并且正在进行预期的操作(使用的行/ Applications / MAMP / htdocs / page / bin / cake queue)

然后我在ubuntu中推送到服务器,更新composer,将debug设置为true,然后运行/ var / www / html / api / bin / cake queue 这就是我收到的:

<?
namespace App\Shell;

use Cake\Console\Shell;
use Cake\Mailer\Email;

class QueueShell extends Shell
{

    public function initialize()
...
...
...
    }
}Exception: Shell class for "Queue" could not be found. in [/var/www/html/api/vendor/cakephp/cakephp/src/Console/ShellDispatcher.php, line 295]

我只是为了测试外翻到777的chmod而改变,但那不起作用。

当我运行/ var / www / html / api / bin / cake时,确认队列在那里。

    Welcome to CakePHP v3.2.4 Console
---------------------------------------------------------------
App : src
Path: /var/www/html/api/src/
PHP : 5.5.9-1ubuntu4.14
---------------------------------------------------------------
Current Paths:

* app:  src
* root: /var/www/html/api
* core: /var/www/html/api/vendor/cakephp/cakephp

Available Shells:

[Bake] bake

[DebugKit] benchmark, whitespace

[Migrations] migrations

[CORE] i18n, orm_cache, plugin, routes, server

[app] console, queue

To run an app or core command, type `cake shell_name [args]`
To run a plugin command, type `cake Plugin.shell_name [args]`
To get help on a specific command, type `cake shell_name --help`

有人建议服务器中可能缺少什么,或者要更改?

提前致谢

0 个答案:

没有答案