[英]Cant start resque worker
I've installed resque gem, gem install resque
. 我已经安装了resque gem,
gem install resque
。
And I tried to start the workers : 我试图启动工人:
bundle exec rake environment resque:work
Resulting in : 导致 :
rake aborted!
Don't know how to build task 'resque:work' (see --tasks)
(See full trace by running task with --trace)
When I do rake -T
no resque tasks appear, what am I going wrong here? 当我做
rake -T
没有出现resque任务时,我在这里出错了什么?
You should put the resque
gem into the Gemfile
instead of installing it directly. 您应该将
resque
gem放入Gemfile
而不是直接安装它。
Installation documentation (as of the time of writing) says that... 安装文档(截至撰写本文时)说...
To start a worker, add this to a file in lib/tasks (ex: lib/tasks/resque.rake):
要启动worker,请将其添加到lib / tasks中的文件中(例如:lib / tasks / resque.rake):
require 'resque/tasks'
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.