Hey Andrew -

I always find it best to specify the 'dir' and 'env' with god itself rather 
than pass those to 'start'. Try this:

    w.dir = rails_root
    w.env = { "RAILS_ENV" => params[:env] }
    w.start = "rake jobs:work"

If that doesn't work, take a look in "#{rails_root}/log/god.log" - there should 
be an error of some sort there indicating why it didn't start.

Regards -

Jesse Newland
---
[email protected]
404.216.1093

On Jan 9, 2010, at 3:36 AM, Andrew Roth wrote:

> hi,
> 
> I'm totally stuck with trying to get god working.
> 
> I have a rake task for delayed job that I want to run, and it works in
> the command line, but not when god runs it.  I literally am copying
> the same command that god runs.  The task sends emails using
> delayed_job's send_later function.  Pretty standard stuff, I think.  I
> did have it working at one point, and made a few small tweaks in my
> code and since then I've been unable to get it working (even with the
> previous working code).
> 
> http://gist.github.com/272795 is my god config.
> 
> This is on a debian 5 install.  The log file specified in the god
> config is not written to consistently - sometimes it's written to,
> usually not, so that's of no help.  I've taken to running screen and
> running the delayed job rake task manually.
> 
> Any ideas appreciated.
> 
> -Andrew Roth
> -- 
> You received this message because you are subscribed to the Google Groups 
> "god.rb" group.
> To post to this group, send email to [email protected].
> To unsubscribe from this group, send email to 
> [email protected].
> For more options, visit this group at 
> http://groups.google.com/group/god-rb?hl=en.
> 
> 

-- 
You received this message because you are subscribed to the Google Groups 
"god.rb" group.
To post to this group, send email to [email protected].
To unsubscribe from this group, send email to 
[email protected].
For more options, visit this group at 
http://groups.google.com/group/god-rb?hl=en.


Reply via email to