我正在尝试在我的 ruby on rails 应用程序中使用 resque。
我在 lib/tasks 文件夹中创建了 resque.rake 文件
require 'resque/tasks'
task 'resque:setup' => :environment
我已经通过以下行启动了 redis 服务器
redis-server /usr/local/etc/redis.conf
我的应用程序中有这个 RakeFile:
require_relative 'config/application'
Rails.application.load_tasks
但是当我运行以下命令启动 rake
rake resque:work QUEUE='*'
我收到此错误:
LoadError: cannot load such file -- resque/tasks
我看不到我错过了什么,
有什么建议么 ?
谢谢。
注意:我使用的是 rails 5.0.1