Thibaut Barrère
unread,Jan 15, 2009, 10:09:25 AM1/15/09Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to Thinking Sphinx
Hi again,
if you use Capistrano with TS, one thing to know is that you can
create a file named config/sphinx.yml (mine is under SVN) with the
following content.
This way sphinx will always use the same folders between deployments,
without symlink issues.
cheers
-- Thibaut
# see vendor/plugins/thinking-sphinx/lib/thinking_sphinx/
configuration.rb
# for production, use our own paths that reside under shared so they
are kept between deployments
# if we don't do so, the default configuration will point to the
folder of the specific release instead
# TODO - if it becomes interesting, create a template out of this file
production:
config_file: /var/sites/myapp/shared/config/production.sphinx.conf
searchd_file_path: /var/sites/myapp/shared/db/sphinx/production
searchd_log_file: /var/sites/myapp/shared/log/searchd.log
query_log_file: /var/sites/myapp/shared/log/searchd.query.log
pid_file: /var/sites/myapp/shared/log/searchd.production.pid