Hi Ajay That file isn't any use for Thinking Sphinx (unless you're using a custom version?)
Try creating config/sphinx.yml and adding the port setting to whichever environments you need. -- Pat On 14/07/2009, at 6:14 AM, Ajay wrote: > > Hi Pat, > > Ok firstly my Sphinx.yml is actually Sphinx.yml.tpl and in that file I > have > > config_file: /opt/sphinx/etc/sphinx.conf > root_dir: /opt/sphinx/bin > indexes: test1 test2 > > > I have left it untouched since I got TS. > > Regards > > Ajay > > On Jul 14, 4:53 am, Pat Allan <[email protected]> wrote: >> Hi Ajay >> >> Do you have Sphinx set up to run on a different port for each >> environment? >> Seehttp://freelancing-god.github.com/ts/en/advanced_config.htmlfor >> an example. >> >> -- >> Pat >> >> On 13/07/2009, at 7:14 AM, Ajay wrote: >> >> >> >> >> >>> Well at the moment I have my app in both prod and dev. >> >>> In cmd I run Rake ts:start in the same directory as my app. >> >>> TS is now: >> >>> using config file 'C:/.../config/development.sphinx.conf'... >>> creating server socket on (my localhost) >>> and is accepting connections >> >>> When I open another cmd window and in the same directory I >> >>> Rake ts:index >> >>> Generating Configuration to C:/.../config/development.sphinx.conf >>> C:/Ruby/binrake: Nosuch fle or directory - cat C:/.../log/ >>> searchd.development.pid >>> rake aborted! >>> you have a nil object when you didn't expect it! >>> you might have expected an instance of ActiveRecord::Base. >>> The error occured while evaluting nil.[] >> >>> both are being run as administrator. If it was possible to perform >>> ts:index then I could easily schedule a batch file. Also this occurs >>> if I try to TS:stop as well. >> >>> I apologise If I am being abstract >>> Thanks >> >>> Ajay >> >>> On Jul 13, 9:59 am, Thibaut Barrère <[email protected]> >>> wrote: >>>> Hi Ajay, >> >>>>> BUT obviously it is unable to run due to TS being started >>>>> and using the config file. If anyone has been able to run rake >>>>> TS:index regularly on a windows any help would be much >>>>> appreciated :( >> >>>> I'm not working on windows with TS, but I'm wondering: what makes >>>> you >>>> say that TS being started and using the config file is an issue ? >>>> Are >>>> you using the same environment for both ? (production, >>>> development) ? >> >>>> If you run rake ts:index having ts running in parallel is not an >>>> issue >>>> afaik. >> >>>> Are you using the same account to execute the task ? Are you >>>> starting >>>> in the right folder ? Any error message you could share ? >> >>>> -- Thibaut- Hide quoted text - >> >> - Show quoted text - > > --~--~---------~--~----~------------~-------~--~----~ 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 -~----------~----~----~----~------~----~------~--~---
