Hi Simon

I'm not sure if capistrano is the best method for invoking a constantly running 
rake task - perhaps it's better to do this via cron? I've not had to do it 
myself, but perhaps others can suggest other approaches?

-- 
Pat

On 10/12/2009, at 10:09 PM, Simon wrote:

> Hi
> 
> I have Thinking Sphinx setup and working however I am having a problem
> getting the Delayed Job rake tasks to start during deployment.
> 
> I have the following task in deploy.rb which appears to execute,
> however the delayed jobs are not processed - they stack up until I run
> rake ts:dd from the server command line:
> 
> namespace :thinkingsphinx do
>  desc 'Start Delayed Job Sphinx delta indexing'
>  task :dd do
>    run "cd #{current_path} && rake ts:dd RAILS_ENV=#{rails_env} &"
>  end
> end
> 
> How can I get the delayed jobs rake tasks to start from the deployment
> script?
> 
> Thanks
> 
> Simon
> 
> --
> 
> 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.


Reply via email to