Search code examples
phpyiiresqueyiicphp-resque

php - ./yiic rresque start does nothing


I installed this extension 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.


Solution

  • Put RResqueCommand.php inside protected/commands

    According the yii docs:

    Console commands are stored as class files under the directory specified by CConsoleApplication::commandPath.

    By default, this refers to the directory protected/commands.