Hi Anders You should be able to use the standard delayed_job script to run all jobs... and that goes into the background (at least, from my recent experience)... try something like the following:
RAILS_ENV=production script/delayed_job start Change the command to 'stop' to get the daemon task to stop :) -- Pat On 23/12/2010, at 1:02 AM, Anders_P wrote: > Hello! > > I'm trying to get delayed_job and ts-delayed-delta to work on my > production server. It works when I SHH into /data/<app_name>/current/ > and run sudo rake ts:dd RAILS_ENV=production. But it stops when I > close the SHH shell. I want it to always run as a background job. > > I've tried to add or require delayed_delta in my main recipes file, > but it didn't help. I've also tried to run the command in my deploy > hooks (after restart), but then the deploy wouldn't finnish. So my > question is how do I get the rake task: sudo rake ts:dd > RAILS_ENV=production, to always run. And work on new deployments. > > Any tips or help would be greatly appreciated! > > Thanks! > // Anders > > -- > You received this message because you are subscribed to the Google Groups > "Thinking Sphinx" 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/thinking-sphinx?hl=en. > -- You received this message because you are subscribed to the Google Groups "Thinking Sphinx" 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/thinking-sphinx?hl=en.
