I am working on a God script to monitor my Unicorns. I started with GitHub\'s examples script and have been modifying it to match my server configuration. Once God is runn
Add the log option has helped me greatly in debugging.
God.watch do |w|
w.log = "#{RAILS_ROOT}/log/god.log"
# remainder of config
end
In the end, my bug turned out to be the start_script
in God was executed in development
environment. I fixed this by appending the RAILS_ENV
to the start script.
start_script = "RAILS_ENV=#{ENV['RACK_ENV']} bundle exec sidekiq -P #{pid_file} -C #{config_file} -L #{log_file} -d"