2016-01-22 70 views
2

我已經安裝resque寶石,gem install resque不能啓動resque工人

我試圖啓動工:

bundle exec rake environment resque:work 

結果造成:

rake aborted! 
Don't know how to build task 'resque:work' (see --tasks) 

(See full trace by running task with --trace) 

當我做rake -T沒有resque任務出現,我該怎麼錯在這裏?

回答

3
  1. 你應該把resque寶石到Gemfile,而不是直接安裝它。

  2. Installation documentation (as of the time of writing)說......

要啓動工作,這添加到LIB /任務的文件(例如:LIB /任務/ resque.rake):

require 'resque/tasks' 
+0

試過兩種方法,結果相同 –

+0

@GandalfStormCrow更新了答案 –