我正试图让上帝启动我的 resque 队列。然而,当我运行god load config/resque.god
它返回The server is not available (or you do not have permissions to access it)
这是我的 resque.god 文件:
rails_env = ENV['RAILS_ENV'] || "production"
rails_root = ENV['RAILS_ROOT'] || "/Users/andrewlynch/sites/wellness/wellbot"
God.watch do |w|
w.name = "resque-worker"
w.group = "resque"
w.interval = 60.seconds
w.dir = "#{rails_root}"
w.start = "RAILS_ENV=development QUEUE=* rake resque:work"
w.start_grace = 30.seconds
end