God not running:服务器不可用(或您没有访问权限) [英] God not running: The server is not available (or you do not have permissions to access it)

查看:63
本文介绍了God not running:服务器不可用(或您没有访问权限)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我试图让上帝启动我的resque队列.但是,当我运行 god load config/resque.god 时,它返回 服务器不可用(或者您无权访问它)

I'm attempting to get god to start up my resque queue. However when I run god load config/resque.god it returns The server is not available (or you do not have permissions to access it)

这是我的 resque.god 文件:

This is my resque.god file:

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

推荐答案

god load 用于将配置加载或重新加载到已经运行的实例中.

god load is use for loading or reloading configurations into an already running instance.

在你的情况下,你的上帝服务器没有运行.

In your case, your god server is not running.

这是运行god的命令:

Here's the command to run god:

god -c config/resque.god

这篇关于God not running:服务器不可用(或您没有访问权限)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆