Hi Marc

It really should work with RAILS_ENV=production - I guess I would start by 
stopping Sphinx (and double check that there's no rogue searchd processes 
running), and then re-index and restart the Sphinx again.

Apache doesn't come into it for indexing - that's invoked by rake (and so, by 
you or cron), so that's definitely not a part of the problem.

Let me know if there's any further problems, happy to work through it with you.

Cheers

-- 
Pat

On 24/12/2010, at 12:29 PM, Marc wrote:

> I have just had this problem, I noticed when I tried running the
> rebuild and reindex tasks, it was trying to connect to the development
> database, I tried running with RAILS_ENV=production, but that got me
> nowhere fast. I eventually just set my development server settings to
> my production server settings (I just have to remember that for the
> next cap deploy). And it worked.
> 
> I dont know how to get TS to use the production settings instead of
> the development settings, so if anyone can shed some light on this,
> that would be great. (I have done the setup mentioned on the TS
> website, and I have set the Rack and Rails envs to production in my
> apache confs)
> 
> -Marc
> 
> On Dec 11, 5:10 pm, Maechi <[email protected]> wrote:
>> There is nothing written in this log file...
>> 
>> On 11 Dez., 14:04, Steve Purcell <[email protected]> wrote:
>> 
>>> Did you try the suggestion it printed? - "Check
>>> /Users/Maechi/App/log/searchd.log"
>> 
>>> Perhaps there's a clue there...
>> 
>>> -Steve
>> 
>>> Maechi <[email protected]> writes:
>>>> Hi there,
>> 
>>>> I experience some problems by upgrading to rails 3 with the thinking
>>>> sphinx server. I use thinking sphinx  2.0.1. Every time I want to
>>>> start the server it says:
>> 
>>>> maechismacbook:App Maechi$ rake ts:start -v -t
>>>> (in /Users/Maechi/App)
>>>> ** Invoke ts:start (first_time)
>>>> ** Invoke thinking_sphinx:start (first_time)
>>>> ** Invoke thinking_sphinx:app_env (first_time)
>>>> ** Execute thinking_sphinx:app_env
>>>> ** Invoke environment (first_time)
>>>> ** Execute environment
>>>> ** Execute thinking_sphinx:start
>>>> Failed to start searchd daemon. Check /Users/Maechi/App/log/
>>>> searchd.log.
>>>> Failed to start searchd daemon. Check /Users/Maechi/App/log/
>>>> searchd.log
>>>> ** Execute ts:start
>> 
>>>> Why is this?
>> 
>>>> Help is appreciated...
>>>> Maechi
> 
> -- 
> 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