Everything works as expected in Development, no issues:
However, when I go to production, I have problems:
Here is a session log from terminal:
ssrxgrp ~/r_work/ssfilemgr/current: RAILS_ENV=production rake
thinking_sphinx:configure
(in /home/bruparel/r_work/ssfilemgr/releases/20090605175950)
Generating Configuration to /home/bruparel/r_work/ssfilemgr/releases/
20090605175950/config/production.sphinx.conf
ssrxgrp ~/r_work/ssfilemgr/current: RAILS_ENV=production rake
thinking_sphinx:index
(in /home/bruparel/r_work/ssfilemgr/releases/20090605175950)
Generating Configuration to /home/bruparel/r_work/ssfilemgr/releases/
20090605175950/config/production.sphinx.conf
Sphinx 0.9.8.1-release (r1533)
Copyright (c) 2001-2008, Andrew Aksyonoff
using config file '/home/bruparel/r_work/ssfilemgr/releases/
20090605175950/config/production.sphinx.conf'...
FATAL: no sources found in config file.
rake aborted!
The following command failed:
indexer --config /home/bruparel/r_work/ssfilemgr/releases/
20090605175950/config/production.sphinx.conf --all
This could be caused by a PATH issue in the environment of cron/
passenger/etc. Your current PATH:
/opt/ruby-enterprise/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/
usr/bin:/sbin:/bin:/usr/games
You can set the path to your indexer and searchd binaries using the
bin_path property in config/sphinx.yml:
production:
bin_path: '/usr/local/bin'
Here are the contents for production.sphinx.conf file in RAILS_ROOT/
config directory of my current deploy directory:
indexer
{
}
searchd
{
address = 127.0.0.1
port = 3312
log = /home/bruparel/r_work/ssfilemgr/releases/20090605175950/log/
searchd.log
query_log = /home/bruparel/r_work/ssfilemgr/releases/20090605175950/
log/searchd.query.log
pid_file = /home/bruparel/r_work/ssfilemgr/releases/20090605175950/
log/searchd.production.pid
}
Note that my development.sphinx.conf has a whole lot more "stuff" in
it. I am not sure what is is that I am doing wrong?
Thanks.
Bharat
--~--~---------~--~----~------------~-------~--~----~
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
-~----------~----~----~----~------~----~------~--~---