<?xml version="1.0" encoding="UTF-8"?>
<commit>
  <added type="array"/>
  <modified type="array">
    <modified>
      <diff>@@ -100,7 +100,7 @@ module ThinkingSphinx
       file_path ||= &quot;#{self.config_file}&quot;
       database_confs = YAML::load(ERB.new(IO.read(&quot;#{app_root}/config/database.yml&quot;)).result)
       database_confs.symbolize_keys!
-      database_conf  = database_confs[environment.to_sym]
+      database_conf  = database_confs[db_config_name.to_sym]
       database_conf.symbolize_keys!
       
       open(file_path, &quot;w&quot;) do |file|</diff>
      <filename>lib/thinking_sphinx/configuration.rb</filename>
    </modified>
    <modified>
      <diff>@@ -1,11 +1,11 @@
 require 'fileutils'
-@indexer = `which indexer`.strip
-@searchd = `which searchd`.strip
 
 namespace :thinking_sphinx do
   task :app_env do
     Rake::Task[:environment].invoke if defined?(RAILS_ROOT)
     Rake::Task[:merb_init].invoke    if defined?(Merb)
+    @indexer = (`which indexer` rescue '/usr/local/bin/indexer').strip
+    @searchd = (`which searchd` rescue '/usr/local/bin/searchd').strip
   end
   
   desc &quot;Start a Sphinx searchd daemon using Thinking Sphinx's settings&quot;</diff>
      <filename>tasks/thinking_sphinx_tasks.rb</filename>
    </modified>
  </modified>
  <removed type="array"/>
  <parents type="array">
    <parent>
      <id>5346590016cc8130a95974e5c0ba9f9604aeb34b</id>
    </parent>
  </parents>
  <author>
    <name>Ed Hickey</name>
    <email>ed@ed-new-laptop.local</email>
  </author>
  <url>http://github.com/bassnode/thinking-sphinx/commit/c211adc2bc23c163ccd927a699b5a986d40523a4</url>
  <id>c211adc2bc23c163ccd927a699b5a986d40523a4</id>
  <committed-date>2008-11-06T06:55:29-08:00</committed-date>
  <authored-date>2008-11-06T06:55:29-08:00</authored-date>
  <message>propagated dynamic db_config_name in configuration.rb
safer indexer and searchd binary locators in rake tasks</message>
  <tree>e7ab0b7736edf8ccbe5dbb5c5e77f2a31103bf55</tree>
  <committer>
    <name>Ed Hickey</name>
    <email>ed@ed-new-laptop.local</email>
  </committer>
</commit>
