简体   繁体   English

php-./yiic rresque start不执行任何操作

[英]php - ./yiic rresque start does nothing

I installed this extension http://www.yiiframework.com/extension/yii-resque/ 我安装了此扩展程序http://www.yiiframework.com/extension/yii-resque/

user@host:/path/to/protected$ ./yiic rresque start
Yii command runner (based on Yii v1.1.13)
Usage: ./yiic <command-name> [parameters...]

The following commands are available:
 - message
 - migrate
 - shell
 - webapp

To see individual command help, use the following:
   ./yiic help <command-name>

What's might be wrong? 有什么问题吗?

EDIT 编辑

I figured out the problem: I didn't put RResqueCommand.php into ./protected/commands folder. 我发现了问题:我没有将RResqueCommand.php放入./protected/commands文件夹中。

Put RResqueCommand.php inside protected/commands RResqueCommand.php放入protected / commands

According the yii docs : 根据yii docs

Console commands are stored as class files under the directory specified by CConsoleApplication::commandPath . 控制台命令作为类文件存储在CConsoleApplication::commandPath指定的目录下。

By default, this refers to the directory protected/commands . 默认情况下,这是指目录protected/commands

Put this into your config/console.php: 将其放入您的config / console.php中:

'import' => array(
    'application.models.*',
    'application.components.*',
),

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM