Capistrano deployment tip

7 views
Skip to first unread message

Thibaut Barrère

unread,
Jan 15, 2009, 10:09:25 AM1/15/09
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

Pierre

unread,
Jan 20, 2009, 10:47:32 AM1/20/09
to Thinking Sphinx
Thanks Thibaut !
Reply all
Reply to author
Forward
0 new messages