【发布时间】:2015-01-19 17:34:45
【问题描述】:
我正试图让上帝启动我的 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
【问题讨论】:
标签: ruby-on-rails ruby resque god