Hi Mike

There's nothing built-in to Thinking Sphinx that does this. I would probably 
create an init.d script that managed this - which could restart Apache, Sphinx 
and Delayed Job. Although really, you should probably restart Delayed Job after 
every deploy (granted, if you're only using it for Sphinx, then that's not so 
important).

Of course, there's a difference to Apache restarting and your app restarting 
(ie: touch tmp/restart.txt). If it's the latter, then it might be worth writing 
a rake task that runs ts:start and ts:dd, then touches tmp/restart.txt.

Cheers

-- 
Pat

On 09/02/2011, at 8:12 PM, Mike C wrote:

> Is there a way to automatically run  rake ts:start and rake ts:dd
> whenever my Apache phusion server restarts? Or somehow automate it so
> that each time the server starts up, I have to manually run those
> commands?
> 
> -- 
> 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