Oh yeah I had that too, I just added another extension to create the 
directory if it does not exist. It might be more correct to rebuild the 
index for the model instead of just creating an empty directory, I'm not 
sure.

Right now, I have moved back to the gem for production use so 
unfortunately I don't have the code that I used to do the above.


Joerg Diekmann wrote:
> Did it all, but the trunk version complains that it cannot find my 
> index/test/my_model directory when I run the test ... :-(
> 
> 
> 
> 
> Seggy Umboh wrote:
>> I should also add that this environment variable is only being read 
>> after http://projects.jkraemer.net/acts_as_ferret/changeset/180
>> 
>> So if you are using the gem, you will either need to backport this fix 
>> as an extension or use the plugin in trunk.
>> 
>> 
>> Seggy Umboh wrote:
>>> By setting the environment variable this way, it only takes effect for 
>>> that command, which is the ferret server. The server needs to use the 
>>> LocalIndex internally.
>>> 
>>> Your regular Rails app will not have FERRET_USE_LOCAL_INDEX set, and 
>>> thus use RemoteIndex.
>>> 
>>> Try it out...
>>> 
>>> 
>>> Joerg Diekmann wrote:
>>>> Hmm ... that means though that I am not using the remote server?
>>>> 
>>>>> So, the solution, at least in my case, is to run the server with:
>>>>> 
>>>>> FERRET_USE_LOCAL_INDEX=1 script/ferret_start
>>>>> 
>>>>> Hope that helps...


-- 
Posted via http://www.ruby-forum.com/.
_______________________________________________
Ferret-talk mailing list
[email protected]
http://rubyforge.org/mailman/listinfo/ferret-talk

Reply via email to