I have my project set to run searchd on port 3312 in development &
production, and port 3313 in test.

This works great on the development boxes of everyone working on the
project, but it's failing on my continuous integration server.  On
that server, the tests are trying to connect to searchd on port 3312,
even though the config files clearly say it should be 3313.

Any help appreciated - details follow.

As I said, it works fine on half a dozen machines, just not on this
one.

-----------config/sphinx.yml looks like this:

development:
  port: 3312

test:
  port: 3313
  sql_range_step: 10000000

[snip]

--------config/test.sphinx.config has this:

searchd
{
  listen = 127.0.0.1:3313
  log = /home/www-data/.cruise/projects/CITAlumni/work/log/searchd.log
 ...
}

-------- when I launch searchd with a rake task, it goes to the
correct port:

$ rake ts:start RAILS_ENV=test
(in /home/www-data/.cruise/projects/CITAlumni/work)
Sphinx 0.9.9-release (r2117)
Copyright (c) 2001-2009, Andrew Aksyonoff

using config file '/home/www-data/.cruise/projects/CITAlumni/work/
config/test.sphinx.conf'...
listening on 127.0.0.1:3313

------- and yet when i run specs, it tries to connect to 3312 and
fails, as if the specs were running in development environment:

$ spec spec/controllers/searches_controller_spec.rb
..FFFFFFFFFF
1)
ActionView::TemplateError in 'SearchesController when searching when
logged in search action should assign an array of people'
Connection to localhost on 3312 failed. Connection refused -
connect(2)
On line #12 of app/views/searches/index.html.haml



-- 
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