I forgot to update this. The problem turned out to be that I was loading all the bundler dependencies from a subdirectory (config), so 1. sinatra was loading, and setting it's root to it's current (wrong) directory 2. thinking sphinx was loading, using sinatra's incorrect root 3. sinatra's root was configured to be the correct root.
Since I didn't want to move the file that contained the initializations, I added a fourth step: ThinkingSphinx::Configuration.instance.reset That resolved the issue. On Sep 16, 8:44 am, Katrina Owen <[email protected]> wrote: > Hi Pat, > > Yes -- no rails app at all. I'm in rvm with a clean gemset, as well, > so there's no rails gem available at all. Just activerecord. > > I'll dig deeper and see what I find out. > > Thanks! > > > > > > > > On Fri, Sep 16, 2011 at 3:07 AM, Pat Allan <[email protected]> wrote: > > Hi Katrina > > > That all seems correct thus far (well, the setup, not the app_root > > setting). Are you using this just within Sinatra? There's no Rails app in > > the mix as well, is there? > > > -- > > Pat > > > On 16/09/2011, at 12:39 AM, Katrina wrote: > > >> Hi, > > >> If I inspect the ThinkingSphinx::Configuration.instance I get: > > >> @app_root="/path/to/my_app/config" > > >> If I output the Sinatra::Application.root I get the correct path (/ > >> path/to/my_app) > > >> I'm using bundler, and the relevant bit of the gemfile looks like > >> this: > > >> gem 'thinking-sphinx', '~> 2.0', :require => 'thinking_sphinx/sinatra' > > >> Bundler.require is called in config/environment.rb > > >> What got me started looking at this is that when I call `rake ts:conf` > >> the output is: > >> Generating Configuration to /path/to/app_root/config/config/ > >> development.sphinx.conf > >> and then the task fails with no such directory. > > >> Any idea what I'm missing? > > >> Cheers, > >> Katrina > > >> -- > >> 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 > >> athttp://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 > > athttp://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.
