Skip to content

Instantly share code, notes, and snippets.

@pierrevalade
Forked from luislavena/gist:91112
Created June 2, 2009 16:18
Show Gist options
  • Save pierrevalade/122334 to your computer and use it in GitHub Desktop.
Save pierrevalade/122334 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