Skip to content

Instantly share code, notes, and snippets.

@luislavena
Created April 7, 2009 05:33
Show Gist options
  • Save luislavena/91112 to your computer and use it in GitHub Desktop.
Save luislavena/91112 to your computer and use it in GitHub Desktop.
# Sphinx and ThinkingSphinx
after "deploy:migrate", "thinking_sphinx:home_made"
namespace :thinking_sphinx do
task :home_made do
# ensure the log directory exist
run "mkdir -p /var/log/engineyard/sphinx/#{application}"
steps = [:configure, :reindex]
run steps.map {|step| "/engineyard/bin/thinking_sphinx_searchd #{application} #{step}"}.join(' && ')
end
end
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment