Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

God not running: The server is not available (or you do not have permissions to access it)

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)

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
like image 586
Andrew Lynch Avatar asked Feb 12 '23 12:02

Andrew Lynch


1 Answers

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

In your case, your god server is not running.

Here's the command to run god:

god -c config/resque.god
like image 50
scorix Avatar answered Feb 14 '23 01:02

scorix