当我运行bundle exec rake jobs:work
时,我收到此错误:
rake aborted!
Don't know how to build task 'jobs:work'
语法有什么问题?
注意:我安装了delayed_jobs,如下所示:
rails plugin install git://github.com/collectiveidea/delayed_job.git
rails generate migration create_delayed_jobs
[ Fill the migration from https://github.com/collectiveidea/delayed_job ]
bundle exec rake db:migrate
答案 0 :(得分:3)
解决方法是安装delayed_jobs,如下所述: https://github.com/collectiveidea/delayed_job
在此之后,bundle exec rake jobs:work
运行良好。