How to invoke rake task from God

8 views
Skip to first unread message

Neeraj Singh

unread,
Jun 12, 2008, 8:20:45 PM6/12/08
to god.rb
In capistrano this is what I have

task:perform_ultrasphinx_start,:roles => :app do
send(run_method, "sudo god start staging_sphinx")
end

In the god configuration file I have

w.start = "cd /home/neeraj/apps/eii_staging/current && /usr/bin/
rake ultrasphinx:daemon:start RAILS_ENV=staging"


But that does not work. What is the right way to tell God that I have
a rake task that should be executed.

Thanks
- Neeraj

Craig Webster

unread,
Jun 13, 2008, 6:02:58 PM6/13/08
to god...@googlegroups.com
On Fri, Jun 13, 2008 at 1:20 AM, Neeraj Singh <neera...@gmail.com> wrote:
> In the god configuration file I have
>
> w.start = "cd /home/neeraj/apps/eii_staging/current && /usr/bin/
> rake ultrasphinx:daemon:start RAILS_ENV=staging"
>
> But that does not work.

Why not? Can you run the command yourself (as the uid and gid you set
in the watch)? Does "god log [watch_name]" show you anything?

Cheers,
Craig
--
Craig Webster | Software Engineer
Xeriom Networks | http://xeriom.net/

Reply all
Reply to author
Forward
0 new messages