如何开始resque不使用rails

我正在使用ruby(而不是rails),我已经安装了resque gem。 根据手册,我应该使用以下命令启动worker:

resque work 

但是这个命令根本没有启动工作者(我已经检查了bin中的resque文件,并且它根本不接受’work’)。

这是输出:

 Usage: resque [options] COMMAND Options: -r, --redis [HOST:PORT] Redis connection string -N, --namespace [NAMESPACE] Redis namespace -h, --help Show this message Commands: remove WORKER Removes a worker kill WORKER Kills a worker list Lists known workers 

使用以下命令创建rakefile:

 require "resque/tasks" 

并运行resque:

 rake resque:work QUEUE=*