I'm trying to use resque in my ruby on rails application.
I created resque.rake file in lib/tasks folder
require 'resque/tasks'
task 'resque:setup' => :environment
I've started redis server by following line
redis-server /usr/local/etc/redis.conf
I have this RakeFile in my application:
require_relative 'config/application'
Rails.application.load_tasks
But when I run the following command to start rake
rake resque:work QUEUE='*'
I'm getting this error:
LoadError: cannot load such file -- resque/tasks
I can't see What I'm missing,
Any suggestions ?
Thanks.
Note: I'm using rails 5.0.1
Aucun commentaire:
Enregistrer un commentaire